A
A
Alexander2018-02-18 11:35:02
Django
Alexander, 2018-02-18 11:35:02

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

3 answer(s)
R
Roman Kitaev, 2018-02-18
@deliro

No way. Collect statics with hashes and there will never be such problems.

S
Sergey Gornostaev, 2018-02-18
@sergey-gornostaev

Use Django Compressor , it both compresses automatically and provides versioning.

A
Alexander Taratin, 2018-02-18
@Taraflex

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 question

Ask a Question

731 491 924 answers to any question