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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Forms Authentication No Cache AND avoiding Web Page Has Expired Ms 5
Page Level Caching? 1
Leverage browser caching 2
Caching Output HTML 3
Page Timeout 3
Paging and cache 6
cache 2
stop client side caching 1

Back
Top