How to force browsers to clear cache?

How can I force all web browsers to reload a page on back button?

  • Even if I set Cache-Control: no cache on my HTTP response, I don't see another HTTP request to the server when I hit the back button.

  • Answer:

    We set the following three headers: Cache-Control: private, no-store, max-age=0, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Expires: Fri, 01 Jan 1990 00:00:00 GMT

Adam D'Angelo at Quora Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.