V
V
Valentine2016-08-11 09:38:44
Django
Valentine, 2016-08-11 09:38:44

How to disable caching of certain urls in nginx?

There is a site on django + uwsgi + nginx. There is a problem with caching. When the user clicks on the "sign out" button, firefox takes that request from the cache.
6870d396f18944848a0179f43a597ac0.png
Accordingly, in reality, the request is not sent to the server, the user does not log out.
This request had Cache-Control "max-age=1" in the headers . I disabled Nginx for this url using the expires off method . Did not help.
How to disable caching of the page and request by the browser using nginx?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question