Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fingerprint dist/wc.min.css to prevent cache issues #3180

Merged
merged 1 commit into from
Dec 23, 2024

Conversation

crnh
Copy link
Contributor

@crnh crnh commented Dec 20, 2024

Purpose

We are using Cloudflare Pages to host a website built with Hugo Blox. When updating the CSS, e.g. after adding new Tailwind classes, Cloudflare's cache keeps serving the old version, which breaks the website's layout. This problem can be mitigated by fingerprinting dist/wc.min.css.

Documentation

N/A

Copy link

netlify bot commented Dec 20, 2024

Deploy Preview for academic-demo canceled.

Name Link
🔨 Latest commit 3604bb1
🔍 Latest deploy log https://app.netlify.com/sites/academic-demo/deploys/67653ec338b7ac0008072799

@jwmbeenakker
Copy link

Very relevant improvement, which we already use on mreye.nl for our own custom CSS and JS files

@gcushen gcushen merged commit 71de892 into HugoBlox:main Dec 23, 2024
5 checks 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.

3 participants