Page 1 of 1

How to disallow browsers to cache my wwb page?

Posted: Wed Dec 18, 2019 6:05 am
by Lemoner
I have a lot of changes on my php page everyday and users see incorrect styles .The cached page doesn't look correct.
I tryed to switch off caching by this way:

(in the head of the page)

<meta http-equiv="Cache-Control" content="no-cache">

But its not work. Browsers still use cache.

How to totally swith off cache ?

Re: How to disallow browsers to cache my wwb page?

Posted: Wed Dec 18, 2019 6:58 am
by Pablo
Note that this is not specific to the application.
But this has worked for other users:

Code: Select all

<meta http-equiv="cache-control" content="max-age=0" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
<meta http-equiv="pragma" content="no-cache" />