readme: fix license/stars badges cached as 'repo not found' from the private era - #169
Merged
Conversation
GitHub's camo proxy cached the license and stars badge images while the repo was private (shields returned 'repo not found'); a PURGE re-fetched stale data from shields' own cache shard. New URLs mean new camo cache keys, so they render immediately: the license badge becomes static (license-MIT-green — the license doesn't change, so no API dependency to break again) and the stars badge gets a cacheSeconds param (fresh camo entry now, saner refresh after). https://claude.ai/code/session_01DpfHDXRC3fR9xhpMVQb6HL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cosmetic but front-page: the README's license and stars badges render as "repo not found" (visible in the screenshots from the freshly-public repo).
Cause: GitHub's camo image proxy cached the shields.io error images from when the repo was private. A
PURGEof the camo entries succeeded but re-fetched stale data from shields' own cache shard — so waiting it out is the only fix for the existing URLs.Fix: change the URLs, which changes the camo cache keys, so they render correctly immediately:
badge/license-MIT-green(the license doesn't change; removing the API dependency means repo-visibility can never break it again).?cacheSeconds=3600(new camo entry now, saner refresh interval after).Both verified at the source before committing (
license: MIT, valid stars SVG). The release badge already healed on its own — and correctly shows v0.13.0 🎉https://claude.ai/code/session_01DpfHDXRC3fR9xhpMVQb6HL
Generated by Claude Code