Turn off browser cache

  • Thread starter Thread starter A.M
  • Start date Start date
This code should do the trick:

Response.Expires = 0
Response.Cache.SetNoStore()
Response.AppendHeader("Pragma", "no-cache")
 
Steve said:
This code should do the trick:

Response.Expires = 0
Response.Cache.SetNoStore()
Response.AppendHeader("Pragma", "no-cache")

That is a myth.

OK, that's probably a harsh way to put it.

What it does is scare off HTTP 1.1 proxies and "upward-compatible" HTTP 1.0
proxies like squid. The browser itself can choose to ignore any of those
headers. Try Opera ;-)

Cheers,
 

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

Back
Top