How to force a page refresh?

  • Thread starter Thread starter Paul Drummond
  • Start date Start date
P

Paul Drummond

Is there a way to force a page refresh, so users will not receive a cached
version of a page, even if they have their browser set to never check for a
newer version of page?



Thank you!
 
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
You can lead a fish to a bicycle,
but it takes a very long time,
and the bicycle has to *want* to change.
 
Hello Paul,
Is there a way to force a page refresh, so users will not receive a
cached version of a page, even if they have their browser set to never
check for a newer version of page?

I don't think so. This is a web client specific behaviour to ignore HTTP
protocol features, such as Cache-Control headers. And no, META tags won't
cut it either.
 
Hello myself,
Hello Paul,

I don't think so. This is a web client specific behaviour to ignore
HTTP protocol features, such as Cache-Control headers. And no, META
tags won't cut it either.

Well, the Refresh trick should work, *if* that behaviour is what you want.
You still have to make sure though that the page has not been cached by some
upstream proxy server by setting Cache-Control: no-cache (See System.Web.HttpCachePolicy).

Cheers,
 
Back
Top