473,387 Members | 1,771 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

SetNoStore

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

Oct 18 '07 #1
1 1866
<rn**@rediffmail.comwrote in message
news:11**********************@k35g2000prh.googlegr oups.com...
>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>
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Oct 18 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: C Elson | last post by:
I was hoping someone can help me out. I've searched the pages here and on numerous sites and cannot find an answer that works. I'm trying this code RC4 Encryption/Decryption...
4
by: Alfons Puig | last post by:
Some pages (not all the pages, but I can't observe differences) opened from javascript via window.showModalDialog() doesn't fire the codebehind Page_Load event the second (and further) time it is...
13
by: Veeresh | last post by:
I am using .Net 1.1. How to expire an .aspx page? I think I have to use HttpCachePolicy class for this. But not sure how to use and where to this code to work. Is it in Page_load event. Thanks...
6
by: Chris | last post by:
In asp we have "Response.Expires = 0" and I've tried: HttpResponse.RemoveOutputCacheItem("page location") But I can't get the page to display new. This is a problem if the data is changed and the...
3
by: Shawn | last post by:
Hi. We have a web application that is used by several different companies. Each company have access to a couple of hundred records which they are updating daily. One of they companies have...
10
by: Sridhar | last post by:
HI, I am having problems setting up a website so that it will be available only inside the domain. We have three servers. One is iis server and second one is internal server and the third one is...
0
by: shamirza | last post by:
· What is view state and use of it? The current property settings of an ASP.NET page and those of any ASP.NET server controls contained within the page. ASP.NET can detect when a form is requested...
1
by: Bill Faulk | last post by:
I want to avoid letting users use the back button on forms with multiple postbacks so I use Response.Cache.SetNoStore() for these pages. This works fine for IE7 and Firefox by showing the desired...
3
by: bushi | last post by:
hi every one! i have displayed a webpage "my_adserver" on my main webpage "client_browser" by using iframe.its working,but there is some problem with page load event of my_server.as i want to...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.