-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Image served without a content-type header is breaking github's cache #77
Comments
Can you provide more context please? |
Sorry. The online swagger validator-badge at swagger.io is serving PNG images with no content-type header:
This mean's Github's image cache (camo) is failing to cache the image and is returning a broken image link, as per the link in my initial issue. You can see the effect of this in the swagger validator github project's README here: and in my wiki sidebar here: |
Got it, thanks for the explanation. |
I've created a temporal workaround. Script that proxies requests to http://online.swagger.io/validator/ and adds "Content-Type: image/png" header to the response so that camo proxy passes it You can use it if you want until this issue is fixed. Just query http://dgrechka.net/swagger_validator_content_type_proxy.php instead of http://online.swagger.io/validator/. E.g. |
@dgrechka Many thanks, will try it out. |
Use convenient proxy for Swagger badge to work around swagger-api/validator-badge#77
Looks like this was fixed in 689ffa8, though not released yet? |
You can see the effect of this in the project's own README.
See https://help.github.com/articles/why-do-my-images-have-strange-urls/ for further information.
The text was updated successfully, but these errors were encountered: