Skip to content

Add CSS cache keys across build, publish, and serve. - #18

Merged
koculu merged 1 commit into
mainfrom
add-css-cache-keys
Oct 7, 2026
Merged

koculu merged 1 commit into
mainfrom
add-css-cache-keys

Conversation

@koculu

@koculu koculu commented Oct 7, 2026

Copy link
Copy Markdown
Member

Summary

Add CSS cache keys across build, publish, and serve

Changes

Generated stylesheets now use keyed filenames such as site.<key>.css and site.<key>.dark.css, with matching HTML links. This prevents browsers and hosts from reusing stale CSS after a new deployment.

Build and publish generate a fresh key per full build. Serve uses one key per session and retains its existing no-store responses for edits. Keys stay outside the resolved configuration so manifest reuse continues to work. Custom paths, query strings, fragments, and base paths are preserved.

Validation

All 477 tests passed, along with TypeScript and lint checks. Added coverage for keyed theme URLs and matching files and page links in build and publish.

@koculu
koculu merged commit e3a225e into main Oct 7, 2026
2 checks passed
@koculu
koculu deleted the add-css-cache-keys branch October 7, 2026 00:44
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