Cached CSS Problem #2743
efeerdogru
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
Browser cache is a problem. When I change things, I had to CTRL+F5 everytime.
I'm currently playing with Svelte and Sapper. Generally, generated css file is stored in static folder. That's fine. I don't like a framework to handle css files.
But, in that html, that line causes browser to cache:
It would be nice when I build css, a version will be added. So that, browser will load new styles.
To achieve this, I wrote a little script. I fits my needs. But I don't know if it's ideal or not, or is there another way to do that.
And I modified script with this:
After executing, template changed:
Wanted to share.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions