SetNoStore

R

rn5a

I am trying to prevent ASP.NET from caching a ASPX page using
Response.Cache.SetNoStore() but the page still gets cached. How do I
prevent the page from caching?

I also tried using Response.Cache.SetNoServerCaching but the page
still gets cached. Please note that I added the Response.Cache line as
the first line in the Page_Load sub.

Ron
 
M

Mark Rae [MVP]

I am trying to prevent ASP.NET from caching a ASPX page using
Response.Cache.SetNoStore() but the page still gets cached. How do I
prevent the page from caching?

I also tried using Response.Cache.SetNoServerCaching but the page
still gets cached. Please note that I added the Response.Cache line as
the first line in the Page_Load sub.

<head runat="server">
<meta http-equiv="Expires" content="0" />
<meta http-equiv="Cache-Control" content="no-cache" />
<meta http-equiv="Pragma" content="no-cache" />
</head>
 

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

Top