When using cdn.jsdelivr.net/gh/{owner}/{repo}@latest/..., the @latest tag
resolves to the latest GitHub Release (not just a git tag).
You push a new tag but @latest still serves the old version because:
- The tag has no corresponding GitHub Release
- jsdelivr caches responses for up to 7 days
gh release create v1.11.1 --title "v1.11.1" --notes "Release notes here"Replace cdn.jsdelivr.net with purge.jsdelivr.net:
curl -s "https://purge.jsdelivr.net/gh/{owner}/{repo}@latest/path/to/file.js"curl -sI "https://cdn.jsdelivr.net/gh/{owner}/{repo}@latest/path/to/file.js" | grep x-jsd-versionShould now show the new version.
@latestonly looks at GitHub Releases, not bare git tags- Cache TTL is
max-age=604800(7 days) for@latestURLs - Pinned version URLs like
@v1.11.1have a 1-year cache but are immutable, so no purge needed - The purge API is public and requires no authentication