Serve badges directly from local filesystem #4561
This solves an issue that arose because the badges need to be explicitly not cached or have a very short cache TTL. When no cache-control headers are present (as on this badge for example), sometimes other intermediaries -- github in this case -- cache it too long. This PR keeps the cache rules and the response together in the code so this problem doesn't arise again like it did previously in #3323.
Similar to #4559 but reads from a local file instead of possibly remote one.
The text was updated successfully, but these errors were encountered: