Skip to content
This repository has been archived by the owner on Feb 3, 2022. It is now read-only.

Trivially update commit payout image path FREEBIE #37

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

liliakai
Copy link

@liliakai liliakai commented Mar 1, 2014

Bithub is now serving the payout image with Cache-Control: max-age=0 but github/fastly is still serving the old cached image on READMEs for Bithub, TextSecure, etc... Evidently fastly is not re-reading the headers correctly.

This commit simply adds a trailing / to the image path, which changes the url hash and effectively forces fastly to re-fetch the image and its headers. I've confirmed that the README in my fork is no longer caching the image.

@moxie0
Copy link
Contributor

moxie0 commented Mar 2, 2014

merge conflict! can you rebase?

Bithub is now serving the payout image with Cache-Control: max-age=0 but
github/fastly is still serving the old cached image. My theory is that
it is not re-reading the headers correctly, although it may be a bug
with github's fastly configuration, since they probably don't expect
anyone to be serving dynamic content in their READMEs.

This commit simply adds a trailing / to the image path, which
effectively forces fastly to re-fetch the image. Hopefully this time
it will read (and respect) the Cache-Control header.
@liliakai
Copy link
Author

liliakai commented Mar 2, 2014

re re re re base base base base d d d d

@moxie0
Copy link
Contributor

moxie0 commented Jul 16, 2014

geez i'm pretty slow on the draw here. do we still need to do this or have the caches caught up?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants