Skip to content

Version-stamp the stylesheet link so deploys are not served stale CSS - #106

Merged
Thiyaghessan merged 1 commit into
mainfrom
fix/css-cache-bust
Sep 21, 2026
Merged

Thiyaghessan merged 1 commit into
mainfrom
fix/css-cache-bust

Conversation

@Thiyaghessan

Copy link
Copy Markdown
Collaborator

After #105 the new page HTML deployed while browsers and the CDN kept the four-hour-cached main.css, so the NTEE figure rendered as unstyled text. The stylesheet link now carries the Jekyll build time as ?v=..., which changes on every deploy and forces a fresh fetch. One-line change in _includes/head.html.

🤖 Generated with Claude Code

GitHub Pages caches main.css for four hours; after a style change the new
HTML arrived before the new CSS and pages rendered unstyled. The link now
carries the build time as a query string, so each deploy fetches fresh CSS.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@Thiyaghessan
Thiyaghessan merged commit 69ab6f5 into main Sep 21, 2026
2 checks passed
@Thiyaghessan
Thiyaghessan deleted the fix/css-cache-bust branch September 21, 2026 14:56
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