How to force a page refresh?

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!
 
K

Kevin Spencer

<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.
 
J

Joerg Jooss

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.
 
J

Joerg Jooss

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,
 

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

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top