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

Update version when a cache sweep is performed #96

Closed
wants to merge 1 commit into from

Conversation

brenogazzola
Copy link
Collaborator

@brenogazzola brenogazzola commented May 23, 2022

Closes #90

@dhh I think this is the simplest option we have. Use a timestamp as the cache version in development, and update it after every cache sweep. Only downside is that it will cause the browser to have to redownload every asset instead of just the one that was modified, since all digests will change.

@brenogazzola
Copy link
Collaborator Author

Urgh, this is not going to solve production.

@brenogazzola brenogazzola deleted the server-no-cache branch May 23, 2022 18:26
@equivalent
Copy link

I had my hopes up, your solution looked promissing.

I didn't realize this will be also Production related issue 😭

@brenogazzola
Copy link
Collaborator Author

Yeah, in production the application file will also no change fingerprint so browsers will keep using their cached version. Whatever solution we come up with has to ensure the fingerprint of applicatiom css changes in dev and prod (dynamic and precompiled)

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.

change is not detected in @import css file
2 participants