ioBroker / ioBroker.repositories

Repositories for ioBroker project
MIT License
137 stars 284 forks source link

Cache-Control for iobroker.live/badges #850

Closed Zefau closed 2 days ago

Zefau commented 4 years ago

Github is caching the images of README.md, which results in outdated badges, e.g. for the version of an adapter.

See https://camo.githubusercontent.com/51363c5291c21367b9acce7d8b839b101c7be998/687474703a2f2f696f62726f6b65722e6c6976652f6261646765732f6875652d657874656e6465642d737461626c652e737667 vs. http://iobroker.live/badges/hue-extended-stable.svg

Solution is Cache-Control as an additional header information from the server-side of iobroker.live as described in https://github.community/t/how-to-prevent-github-from-caching-images-in-markdown-files/1868

gaudes commented 3 years ago

Hi @Zefau ,

@GermanBluefox has made some improvements in the HTTP-Header on the webserver.

In my repos, the badges are now correct.

Would you like to check it again ?

Kind regards, Ralf

Zefau commented 3 years ago

Do I have to apply any changes?

https://github.com/Zefau/ioBroker.jarvis shows 2.4k installations, but directly opening http://iobroker.live/badges/jarvis-installed.svg shows 3.5k. So seems still wrong.

gaudes commented 3 years ago

The badges must be from https:

https://iobroker.live/badges/jarvis-installed.svg

mcm1957 commented 2 days ago

If this issue still exists please contact bluefox. The webserver is not managed from this repository.