Answer the question
In order to leave comments, you need to log in
After uploading the code to production, how can all visitors clear the cache?
Who knows how it is possible once, for all visitors to clear the cache, using backend tools?
That is, there are static css, js files, and you need to clear the cache from them without the query string my-site.com/css/styles.css?v=1.
Answer the question
In order to leave comments, you need to log in
No way. Collect statics with hashes and there will never be such problems.
Use Django Compressor , it both compresses automatically and provides versioning.
Read about headers
https://developer.mozilla.org/en/docs/Web/HTTP/%D0...
https://developer.mozilla.org/en/docs/Web/HTTP/Hea...
https: //developer.mozilla.org/ru/docs/Web/HTTP/%D0...
https://developer.mozilla.org/en-US/docs/Web/HTTP/...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question