Hi All,
What is the most reliable method of preventing a page from being cached by
the browser? I'm using ASP.NET v1.1.
Thanks.
Shardul. 2 1416
Response.Expire s = 0
Response.Cache. SetNoStore()
Response.Append Header("Pragma" , "no-cache")
--
I hope this helps,
Steve C. Orr, MCSD, MVP http://SteveOrr.net
"Shardul Kulkarni" <ks********@yah oo.co.uk> wrote in message
news:11******** *****@corp.supe rnews.com... Hi All,
What is the most reliable method of preventing a page from being cached by the browser? I'm using ASP.NET v1.1.
Thanks. Shardul.
Steve C. Orr [MVP, MCSD] wrote: Response.Expire s = 0 Response.Cache. SetNoStore() Response.Append Header("Pragma" , "no-cache")
Unless you really need "Cache-Control: no-store", I would prefer the
shorter
Response.Cache. SetCacheability (HttpCacheabili ty.NoCache);
which is equivalent to the cache directive
<%@ OutputCache Location="None" %>
Cheers,
-- http://www.joergjooss.de
mailto:ne****** **@joergjooss.d e This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Ludwig77 |
last post by:
I read that there are some tags that can be entered in a web page's
meta tags in order to prevent web bot searching and indexing of the
web page for search engines.
What is the tagging that I would need to use?
|
by: Behzad |
last post by:
Hi all
I'am ASP programmer and I have built a site that users can upload and
download files.All things store in a DB and everytime someone enters a
page,the application requery the Db and shows him data.
but there is aproblem:
all my pages caches before Client and i can not see fresh page.for
example if I did some activity on Monday on...
|
by: R. Ian Lee |
last post by:
I have an ASP.NET page that spawns a popup window using
javascript's window.open. This works fine. It pops up,
you enter some data, press save and everything saves as
it should. But, if you click the button to open the
popup again, then it opens with the values that were in
it before the "save" was executed. I've determined that
the...
|
by: Ronald S. Cook |
last post by:
I have an ASPX page wherein I receive an ID of a file to play.
http://localhost/fwi/mediaplayer.aspx?id=3
When I go to a browser and type in the above, it works fine.
But when I change the 3 to a 4, it still plays the old song.
I tried some lines of code to prevent caching, but so far nothing works.
|
by: Werschinger |
last post by:
Hello PHP group
I'm trying to prevent Safari from caching pages (e.g. private pages),
so it is not possible to view them when hitting the back button.
I tried it as described on Apple's developer site:
http://developer.apple.com/internet/safari/faq.html#anchor5
using
| |
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| |