Answer the question
In order to leave comments, you need to log in
How do I avoid having to clear the browser cache when I make changes?
If I make any changes on the site and restart nginx, then the changes will not be displayed on the site until I clear the browser cache.
The nginx config file is set to:
sendfile off;
Answer the question
In order to leave comments, you need to log in
To say in the headers of the returned resources that they cannot be cached (a bad way), or to give different urls for files when changes are made, attaching to them, for example, a type parameter example.com/style.css?v=2020070201
.
Z.Y. - nginx needs to be restarted in extremely rare cases, use reload.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question