Answer the question
In order to leave comments, you need to log in
How to force browser to refresh files in cache storage?
The problem is this. All browsers cache static. This is good, but when the static file is updated, they continue to use the files from the cache. Because of this, during development, you have to constantly clear the cache. How do you fix things like this? I'm going to put the site into production, but I'm afraid that if I make changes to the interface, no one will see them until they clear the cache. What do you advise? I am using Python/Django. In production - nginx.
Answer the question
In order to leave comments, you need to log in
The most impenetrable way:
<link rel="stylesheet" type="text/css" href="my.css?ver=42">
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question