stopping client side caching

  • Thread starter Thread starter John Livermore
  • Start date Start date
J

John Livermore

What can be done to keep pages from caching and to hit the server each
and every time they are accessed? When our users hit their back
button on the browser we need to ensure the page is reloaded from the
server and not the browser cache.

Thanks,
John
 
Here is what I use.

<meta http-equiv="expires" content="Sun, Dec 31 1970 12:00:00 GMT" />
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="pragma" content="no-cache" />

I tried setting the expiration in IIS, but that didn't seem to work. I
don't even know what the option "Expire pages immediately" does if it does
NOT Expire pages immediately.

bill
 
Hi,

you can add the following to a html page in the header:

<meta http-equiv="expires" content="0">
<meta http-equiv="pragma" content="no_cache">
<meta http-equiv="Cache-control" content="no_cache">

Of course, you can also do that programmatically in code. By adding these
headers in the Response scope.

Best regards,

Marc Höppner
NeoGeo
 
Back
Top