cache

S

simon

I use this for reventing a page to be cached:

<meta name="prevent_caching1" HTTP-EQUIV="Pragma" content="no-cache">
<meta name="prevent_caching2" HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
<meta name="prevent_caching3" HTTP-EQUIV="Expires" CONTENT="0">

But still, page is in cache. I must click 2 times on the same link
(window.open), that the page is refreshed.

Any idea?

lp,S
 
J

Juan T. Llibre

Have you tried using a native ASP.NET method ?

Response.Cache.SetCacheability(HttpCacheability.NoCache)
 
J

Joerg Jooss

simon said:
I use this for reventing a page to be cached:

<meta name="prevent_caching1" HTTP-EQUIV="Pragma" content="no-cache">
<meta name="prevent_caching2" HTTP-EQUIV="Cache-Control"
CONTENT="no-cache"> <meta name="prevent_caching3"
HTTP-EQUIV="Expires" CONTENT="0">

But still, page is in cache. I must click 2 times on the same link
(window.open), that the page is refreshed.

META tags are lousy means to prevent caching. You must use HTTP
features. 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

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,062
Latest member
OrderKetozenseACV

Latest Threads

Top