Skip to content

Version the stylesheet and scripts so browsers drop the old copies - #6

Merged
marcos-mendez merged 1 commit into
mainfrom
fix/cache-busting
Sep 30, 2026
Merged

marcos-mendez merged 1 commit into
mainfrom
fix/cache-busting

Conversation

@marcos-mendez

Copy link
Copy Markdown
Contributor

The site is served without Cache-Control, so browsers that cached the previous style.css pair it with the new pages. Pages now reference style.css and the scripts with ?v=2026093001; sitecheck ignores the query when resolving references (tests added).

keellinux.org is served without a Cache-Control header, so a browser
that kept the old style.css from the previous site, heuristically for
days, paired it with the new pages and rendered them broken. Every page
now asks for style.css and the scripts with a version query, which is a
new URL to every cache. sitecheck drops the query when it resolves a
reference, with tests.
@marcos-mendez
marcos-mendez merged commit 82e5c6c into main Sep 30, 2026
1 check passed
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