chore: refresh stale Camo cache on PyPI badges#4
Merged
Conversation
The PyPI version + Python-versions badges in the README were rendering
as "package not found" even after v0.1.0 went live, because GitHub's
image proxy (camo.githubusercontent.com) had cached the SVG fetched
before publication and refused to revalidate.
Diagnosis (confirmed before this change):
- pypi.org/project/socialapis-sdk → HTTP 200
- shields.io API returns: {"label":"pypi","message":"v0.1.0"}
- PyPI JSON API confirms version: 0.1.0
→ data is correct everywhere; only Camo was stale
Fix: change the badge URLs so Camo treats them as new images and
re-fetches:
- PyPI version: img.shields.io/pypi/v/... → badge.fury.io/py/...
(different host, different image, fresh Camo entry)
- Python versions: drop the .svg suffix (shields.io serves SVG by
default; the URL change forces Camo to re-fetch)
Both badges now point at the correct PyPI version/data, just via
URLs Camo hasn't seen before. The functional behavior is identical
— clicking still routes to pypi.org/project/socialapis-sdk.
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.
Why
The PyPI version + Python-versions badges in the README still render as "package not found" even though v0.1.0 published successfully. Diagnosis:
All three are correct. The stale image is GitHub's Camo proxy (`camo.githubusercontent.com`), which cached the SVG fetched before publication and refuses to revalidate until either:
What changes
This PR swaps the URLs to ones Camo hasn't seen before:
Both new URLs still point at correct PyPI data — clicking the badge still routes to the same project page. Only the embedded image URL is different.
Test plan
After merging:
Alternative if this doesn't work
If Camo still serves a stale image after merge, you can manually purge a specific image by:
```bash
curl -X PURGE https://camo.githubusercontent.com/
```
But that requires the exact Camo URL of the cached image. The URL-swap is simpler and works reliably.