badges / gh-badges

Go to badges/shields. Especially if you don't know why. (This repo is old.)
http://img.shields.io/
Creative Commons Zero v1.0 Universal
87 stars 29 forks source link

Added no-cache headers - fixes #28 #29

Closed stefanjudis closed 10 years ago

stefanjudis commented 10 years ago

To let the badges stay update to date, no-cache headers should be set, so that Github doesn't cache them in their CDN.

espadrine commented 10 years ago

Thanks a lot!

The 1-day cache control is for static images (same URL → same output), so I kept it. I also moved the no-cache declaration before the cache hits, so that even cached images get the header set appropriately in 5602ed50f37b3982b662d999178a3949cc718743.