Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Badges aren't updating due to being cached on GitHub. #3323
Probably affects everyone that uses badges. At least on GitHub.
Our RTFD badge has been showing "failing" for days now, even though the docs build successfully.
Appears to be happening because GitHub has the image cached on its own domain.
Had a look at HTTP headers:
Seems likely that GitHub is ignoring the Cache-Control of the initial URL and respecting the Cache-Control of the redirect target... which means the badge will be cached for 604800 seconds == 7 days.
Note the latter commit was on Aug 17. Two new comments against #1612 since then complain that the problem still exists. Comments dated Aug 21 and Oct 31.
Badge should update when build status changes.
Badge doesn't update because it is cached.
Did some testing. Does this look like it will fix it?
referenced this issue
Aug 22, 2018
I can see it right now on my project:
Badge is red but docs are right there in place. Last failed build close to two days old. Loading the image separately (per rst file) results in a green badge. The image appears to be cached by github per address bar if I open the image alone. Other badges are moving along just fine.
I believe we have this corrected. However, we're waiting for two things: