IE.. Tools -> Internet Options -> Settings Button ->
Check for newer versions of stored pages = Never
If a user changes thier settings to this, then pages are cached in IE.
From what we've found, you have to use the following Meta tags in the HEAD
section to stop it doing it.
meta http-equiv="Pragma" content="no-cache"
meta http-equiv="Expires" content="0"
However, due to a problem, if the page is less than 64k, you have to
add a 2nd HEAD section after the BODY and include the two meta tags again.
e.g.
<HTML>
<HEAD>
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="0">
</HEAD>
<BODY>
yada yada yada
</BODY>
<HEAD>
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="0">
</HEAD>
</HTML>
else the pages are still cached.
To get the thing working and out there, I've added the 2nd head tags to each
aspx page.
Is there a better way of doing this?
Thanks
Adrian 3 1449
Have you tried just adding
< %@Outputcache Location="None" % >
directive after @Page directive. It should set headers so that caching is
disallowed.
--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
"Adrian Parker" <ap******@nospa m.com> wrote in message
news:%2******** *******@TK2MSFT NGP09.phx.gbl.. . IE.. Tools -> Internet Options -> Settings Button -> Check for newer versions of stored pages = Never
If a user changes thier settings to this, then pages are cached in IE.
From what we've found, you have to use the following Meta tags in the HEAD section to stop it doing it.
meta http-equiv="Pragma" content="no-cache" meta http-equiv="Expires" content="0"
However, due to a problem, if the page is less than 64k, you have to add a 2nd HEAD section after the BODY and include the two meta tags again. e.g.
<HTML> <HEAD> <meta http-equiv="Pragma" content="no-cache"> <meta http-equiv="Expires" content="0"> </HEAD> <BODY> yada yada yada </BODY> <HEAD> <meta http-equiv="Pragma" content="no-cache"> <meta http-equiv="Expires" content="0"> </HEAD> </HTML>
else the pages are still cached.
To get the thing working and out there, I've added the 2nd head tags to each aspx page.
Is there a better way of doing this?
Thanks Adrian
Hi Teemu,
No I haven't.. probably because I didn't know about it :)
Is there any way of automating the addition of the code to the top of each
page, or is it another manual process ?
Thanks
Adrian
"Teemu Keiski" <jo****@aspalli ance.com> wrote in message
news:eg******** ******@TK2MSFTN GP12.phx.gbl... Have you tried just adding
< %@Outputcache Location="None" % >
directive after @Page directive. It should set headers so that caching is disallowed.
-- Teemu Keiski ASP.NET MVP, AspInsider Finland, EU
"Adrian Parker" <ap******@nospa m.com> wrote in message news:%2******** *******@TK2MSFT NGP09.phx.gbl.. . IE.. Tools -> Internet Options -> Settings Button -> Check for newer versions of stored pages = Never
If a user changes thier settings to this, then pages are cached in IE.
From what we've found, you have to use the following Meta tags in the HEAD section to stop it doing it.
meta http-equiv="Pragma" content="no-cache" meta http-equiv="Expires" content="0"
However, due to a problem, if the page is less than 64k, you have to add a 2nd HEAD section after the BODY and include the two meta tags again. e.g.
<HTML> <HEAD> <meta http-equiv="Pragma" content="no-cache"> <meta http-equiv="Expires" content="0"> </HEAD> <BODY> yada yada yada </BODY> <HEAD> <meta http-equiv="Pragma" content="no-cache"> <meta http-equiv="Expires" content="0"> </HEAD> </HTML>
else the pages are still cached.
To get the thing working and out there, I've added the 2nd head tags to each aspx page.
Is there a better way of doing this?
Thanks Adrian
Yes, it can be done with code also, and if you want it for every page, you
can do it from Global.asax and Application_Beg inRequest (for example).
Response.Cache. SetCacheability (HttpCacheabili ty.NoCache)
Here is more about the feature http://msdn.microsoft.com/library/de...lityofpage.asp
There is also a bigger mixture of variations possible. For example
Response.Cache. SetCacheability (HttpCacheabili ty.NoCache)
Response.AddHea der ("Pragma", "no-cache")
Response.Expire s = -1
--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
"Adrian Parker" <ap******@nospa m.com> wrote in message
news:e%******** ********@TK2MSF TNGP15.phx.gbl. .. Hi Teemu,
No I haven't.. probably because I didn't know about it :) Is there any way of automating the addition of the code to the top of each page, or is it another manual process ?
Thanks Adrian
"Teemu Keiski" <jo****@aspalli ance.com> wrote in message news:eg******** ******@TK2MSFTN GP12.phx.gbl... Have you tried just adding
< %@Outputcache Location="None" % >
directive after @Page directive. It should set headers so that caching is disallowed.
-- Teemu Keiski ASP.NET MVP, AspInsider Finland, EU
"Adrian Parker" <ap******@nospa m.com> wrote in message news:%2******** *******@TK2MSFT NGP09.phx.gbl.. . IE.. Tools -> Internet Options -> Settings Button -> Check for newer versions of stored pages = Never
If a user changes thier settings to this, then pages are cached in IE.
From what we've found, you have to use the following Meta tags in the HEAD section to stop it doing it.
meta http-equiv="Pragma" content="no-cache" meta http-equiv="Expires" content="0"
However, due to a problem, if the page is less than 64k, you have to add a 2nd HEAD section after the BODY and include the two meta tags again. e.g.
<HTML> <HEAD> <meta http-equiv="Pragma" content="no-cache"> <meta http-equiv="Expires" content="0"> </HEAD> <BODY> yada yada yada </BODY> <HEAD> <meta http-equiv="Pragma" content="no-cache"> <meta http-equiv="Expires" content="0"> </HEAD> </HTML>
else the pages are still cached.
To get the thing working and out there, I've added the 2nd head tags to each aspx page.
Is there a better way of doing this?
Thanks Adrian
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Captain Chaos |
last post by:
Is it Possible to Cache Pictures JPG/BMP on the Client Browser ?
The other Elements of the Page should not being cached because they change.
Is it possible to cache parts of a page on the Client but not the whole
page
|
by: Troy Simpson |
last post by:
Hi,
I have a website which is made up of dynamic pages. Each page that's loaded
has some code which looks at which template to load amongst other things,
which causes the page to take a little while to be processed. At the moment
I have programmatic page caching in the "loader" using paramater caching to
send a cached version of every requested page back to the user.
How can I get particular elements inside each page to cache without...
|
by: Janaka |
last post by:
Hi All,
I'm having a problem with Page Output caching on a page that contains a
DataGrid. Basically the page pulls up some data for sales information from
the DB. Some of this has to be calculated on the fly when the request is
made, and so I thought it would be ideal to cache the page for a set amount
of time. I've placed the following at the top of my page: <%@ OutputCache
Duration="160" VaryByParam="None" %>
Now the problem is...
|
by: moondaddy |
last post by:
I have a products catalogue that I'm putting online and there will be
between 20 to 50 different pages of products. Each page contains a datagrid
of products for a given category. However, the categories change from time
to time so the list of categories must be dynamic and database driven (as is
the menu used to select the category to load in the products page). The way
I see it there's 2 possible options. dynamically create each aspx...
|
by: Raghu Raman |
last post by:
Hi,
In my asp .net page am using many controls and a grid.i populate many
html controls innside the grid dynamically .if i click the grid ,it wll
go to other page using onclick client side javascript function.
I,want my grid data to be maintained in cache when i click the html
button.
before going to that page i want to cache my page data,so that i can
| |
by: py |
last post by:
how feasible is it to cache an entire page's content in a session variable?
i am already doing it and it works fine, except i am afraid of scalability
issues. what is the best way to test this? and is there an obvious reason
why i should not do this.
|
by: DC |
last post by:
Hi,
(ASP.Net 1.1) is it possible to (programmatically and globally)
deactivate page fragment caching? We have only two scenarios,
development stage where we want caching off and testing where we want
caching on. Is this doable? I think there is a config switch in 2.0,
anything in 1.1?
TIA for any hint,
|
by: Raj |
last post by:
What is the purpose of file system caching while creating a tablespace?
Memory on the test server gets used up pretty quickly after a user
executes a complex query(database is already activated), after some
investgation i found out that most of it being consumed by filesystem
caching... thanks to Liam and Phil Sherman for their valuable
suggestions. Is it safe to turn off filesystem caching on every
tablespaceon the server(i.e. DIO) ??...
|
by: Harvey Schmidlapp |
last post by:
I have a fairly complex form (generated by means of an ASP 3 page).
The form is used to define a query against a database. After running a
query, the user hits their browser's back button and goes back to the
form, where their selections show up. They can change whatever they
want to change and resubmit the new query. Mostly, everything works
fine, with radio buttons, selection lists, check boxes all coming back
in the state they were in...
|
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 usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
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: 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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |