[refine] stars badge
@worktrunk-bot why does the Stars badge show as Invalid on the readme? I think this used to work — has something on the backend changed?
I checked the Stars badge URL and it's currently rendering correctly (showing 2.7K stars).
This was most likely a transient shields.io outage — they depend on the GitHub API and occasionally show "invalid" when rate-limited or when GitHub's API has hiccups. Their status page tracks these incidents.
If it happens again persistently, one option would be switching to a different badge provider, but given it's working now, I'd suggest just keeping an eye on it.
hmmm, I still get this problem. how are you verifying that it works?
Sorry about that — my earlier check was too shallow. I fetched the badge URL directly from shields.io, which returns a valid SVG. But GitHub proxies all README images through their camo CDN (camo.githubusercontent.com), and that layer can cache a stale/broken version independently of the upstream.
A couple of things to try:
-
Purge GitHub's camo cache — you can force a re-fetch by appending a cache-buster query param to the badge URL in the README, e.g. changing:
https://img.shields.io/github/stars/max-sixty/worktrunk?style=for-the-badge&logo=githubto:
https://img.shields.io/github/stars/max-sixty/worktrunk?style=for-the-badge&logo=github&v=2This gives camo a "new" URL to fetch fresh.
-
Hard refresh —
Ctrl+Shift+R(orCmd+Shift+R) on the README page in case your browser is also caching the broken image. -
Use GitHub's cache purge API — if you can grab the camo URL from the broken
<img>tag, you cancurl -X PURGE <camo-url>to request invalidation.
If none of these work, I can open a PR to add the cache-buster param. Let me know what you see after trying option 2.
ok it works again; closing!