Skip to content

docs: cache-bust PyPI badge URLs to refresh GitHub Camo#13

Merged
ljagiello merged 1 commit into
mainfrom
docs/badge-cache-bust
May 1, 2026
Merged

docs: cache-bust PyPI badge URLs to refresh GitHub Camo#13
ljagiello merged 1 commit into
mainfrom
docs/badge-cache-bust

Conversation

@ljagiello
Copy link
Copy Markdown
Contributor

The PyPI badges in README.md still show "package or version not found" because GitHub Camo cached the SVG before `friday-agent-sdk 0.1.1` was published. Camo's natural TTL is 3h (`expires: 04:45:07 GMT` from initial cache at `01:45:07 GMT`), and `PURGE` requests against the camo URLs returned 200 but didn't actually invalidate.

This was supposed to be in #12 (commit `8305b5b`) but landed after the squash-merge.

What this does

Adds `?v=1` to the two PyPI badge URLs:

  • Shields.io ignores unknown query strings, so the badge content is unchanged.
  • The Camo URL hash is derived from the source URL, so a new query string ⇒ a new Camo URL ⇒ fresh fetch from shields.io ⇒ correct `v0.1.1` displayed.

The CI and License badges are untouched.

Test plan

  • `vp check` clean
  • After merge, hard-refresh the repo home page and confirm both PyPI badges show real values (`v0.1.1` and `3.12 | 3.13 | 3.14`).

@ljagiello ljagiello merged commit d300c74 into main May 1, 2026
7 checks passed
@ljagiello ljagiello deleted the docs/badge-cache-bust branch May 1, 2026 04:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant