Skip to content

Add automatic CSS and JS cache busting in CI#8

Merged
Rochet2 merged 1 commit into
masterfrom
asset-cache-busting
May 26, 2026
Merged

Add automatic CSS and JS cache busting in CI#8
Rochet2 merged 1 commit into
masterfrom
asset-cache-busting

Conversation

@Rochet2

@Rochet2 Rochet2 commented May 26, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add script/asset_version.py to hash CSS/JS files and write _data/assets.yml during CI
  • Append ?v= version query strings to stylesheet and gallery script URLs in the layout
  • Ignore the generated _data/assets.yml in git

Test plan

  • CI passes on this PR
  • Deployed pages load CSS/JS with a ?v= query parameter
  • Changing a CSS or JS file produces a new version hash on the next deploy

Hash site stylesheets and gallery.js before each Jekyll build, append the version as a query string in the layout, and ignore the generated assets data file.
@Rochet2 Rochet2 merged commit 511c560 into master May 26, 2026
1 check passed
@Rochet2 Rochet2 deleted the asset-cache-busting branch May 26, 2026 01:29
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