How do we handle Caching in IE?
It seems that my system works fine in Mozilla and Netscape when I make
changes.
But in IE the changes are not brought across when someone has been to the
site before. If they have been here before and hit the same page, the old
page is rendered which will cause errors as things that are expected with
the new changes are not being done, such as session cookies being created or
updated.
I understand you can handle caching from the web.config, but why is IE
having a problem and Mozilla not?
Thanks,
Tom 13 1641
maybe you should post a code sample of what you are experiencing
--
Regards,
Alvin Bruney
[Shameless Author Plug]
The Microsoft Office Web Components Black Book with .NET
available at www.lulu.com/owc
_______________ __________
"tshad" <ts**********@f tsolutions.com> wrote in message
news:uv******** *****@TK2MSFTNG P10.phx.gbl... How do we handle Caching in IE?
It seems that my system works fine in Mozilla and Netscape when I make changes.
But in IE the changes are not brought across when someone has been to the site before. If they have been here before and hit the same page, the old page is rendered which will cause errors as things that are expected with the new changes are not being done, such as session cookies being created or updated.
I understand you can handle caching from the web.config, but why is IE having a problem and Mozilla not?
Thanks,
Tom
"Alvin Bruney [ASP.NET MVP]" <www.lulu.com/owc> wrote in message
news:eC******** *****@TK2MSFTNG P15.phx.gbl... maybe you should post a code sample of what you are experiencing
How would I do that?
The problem is just that if I go to a page in IE and then makes some
changes - If I go to that same page, my browser will load the old version of
the page. If the old page was looking for something that is not there any
more, I would get an error. As soon as I hit the refresh button, the new
version of the page gets loaded and it works fine.
It is hard to show it - as it is dependent on you loading a page and them my
making a change that would cause it to fail if you re-ran it.
I only have that problem with IE.
Tom -- Regards, Alvin Bruney [Shameless Author Plug] The Microsoft Office Web Components Black Book with .NET available at www.lulu.com/owc _______________ __________
"tshad" <ts**********@f tsolutions.com> wrote in message news:uv******** *****@TK2MSFTNG P10.phx.gbl... How do we handle Caching in IE?
It seems that my system works fine in Mozilla and Netscape when I make changes.
But in IE the changes are not brought across when someone has been to the site before. If they have been here before and hit the same page, the old page is rendered which will cause errors as things that are expected with the new changes are not being done, such as session cookies being created or updated.
I understand you can handle caching from the web.config, but why is IE having a problem and Mozilla not?
Thanks,
Tom
make sure the IE setting for "Check for newer version of stored pages" is set
to "Automatically" , which is the default. For some bizarre reason people
sometimes change this setting to "Never" which leads to the behavior you are
describing.
"tshad" wrote: "Alvin Bruney [ASP.NET MVP]" <www.lulu.com/owc> wrote in message news:eC******** *****@TK2MSFTNG P15.phx.gbl... maybe you should post a code sample of what you are experiencing
How would I do that?
The problem is just that if I go to a page in IE and then makes some changes - If I go to that same page, my browser will load the old version of the page. If the old page was looking for something that is not there any more, I would get an error. As soon as I hit the refresh button, the new version of the page gets loaded and it works fine.
It is hard to show it - as it is dependent on you loading a page and them my making a change that would cause it to fail if you re-ran it.
I only have that problem with IE.
Tom -- Regards, Alvin Bruney [Shameless Author Plug] The Microsoft Office Web Components Black Book with .NET available at www.lulu.com/owc _______________ __________
"tshad" <ts**********@f tsolutions.com> wrote in message news:uv******** *****@TK2MSFTNG P10.phx.gbl... How do we handle Caching in IE?
It seems that my system works fine in Mozilla and Netscape when I make changes.
But in IE the changes are not brought across when someone has been to the site before. If they have been here before and hit the same page, the old page is rendered which will cause errors as things that are expected with the new changes are not being done, such as session cookies being created or updated.
I understand you can handle caching from the web.config, but why is IE having a problem and Mozilla not?
Thanks,
Tom
tshad wrote: "Alvin Bruney [ASP.NET MVP]" <www.lulu.com/owc> wrote in message news:eC******** *****@TK2MSFTNG P15.phx.gbl... maybe you should post a code sample of what you are experiencing
How would I do that?
Dou you do anything in your code that prevents caching?
Cheers,
-- http://www.joergjooss.de
mailto:ne****** **@joergjooss.d e
"idi_amin" <id*****@discus sions.microsoft .com> wrote in message
news:74******** *************** ***********@mic rosoft.com... make sure the IE setting for "Check for newer version of stored pages" is set to "Automatically" , which is the default. For some bizarre reason people sometimes change this setting to "Never" which leads to the behavior you are describing.
In "Automatica lly" mode IE will check for new version of page only once per
session. For development purposes you should set "Every visit to the page"
mode.
"idi_amin" <id*****@discus sions.microsoft .com> wrote in message
news:74******** *************** ***********@mic rosoft.com... make sure the IE setting for "Check for newer version of stored pages" is set to "Automatically" , which is the default. For some bizarre reason people sometimes change this setting to "Never" which leads to the behavior you are describing.
That's fine for me.
But I don't want this happening for people that are using my site as it will
not work correctly when I make changes to my pages.
Tom
"tshad" wrote:
"Alvin Bruney [ASP.NET MVP]" <www.lulu.com/owc> wrote in message news:eC******** *****@TK2MSFTNG P15.phx.gbl... > maybe you should post a code sample of what you are experiencing
How would I do that?
The problem is just that if I go to a page in IE and then makes some changes - If I go to that same page, my browser will load the old version of the page. If the old page was looking for something that is not there any more, I would get an error. As soon as I hit the refresh button, the new version of the page gets loaded and it works fine.
It is hard to show it - as it is dependent on you loading a page and them my making a change that would cause it to fail if you re-ran it.
I only have that problem with IE.
Tom > > -- > Regards, > Alvin Bruney > [Shameless Author Plug] > The Microsoft Office Web Components Black Book with .NET > available at www.lulu.com/owc > _______________ __________ > > > "tshad" <ts**********@f tsolutions.com> wrote in message > news:uv******** *****@TK2MSFTNG P10.phx.gbl... >> How do we handle Caching in IE? >> >> It seems that my system works fine in Mozilla and Netscape when I make >> changes. >> >> But in IE the changes are not brought across when someone has been to >> the >> site before. If they have been here before and hit the same page, the >> old page is rendered which will cause errors as things that are >> expected >> with the new changes are not being done, such as session cookies being >> created or updated. >> >> I understand you can handle caching from the web.config, but why is IE >> having a problem and Mozilla not? >> >> Thanks, >> >> Tom >> > >
"Joerg Jooss" <ne********@joe rgjooss.de> wrote in message
news:xn******** ********@msnews .microsoft.com. .. tshad wrote:
"Alvin Bruney [ASP.NET MVP]" <www.lulu.com/owc> wrote in message news:eC******** *****@TK2MSFTNG P15.phx.gbl... > maybe you should post a code sample of what you are experiencing How would I do that?
Dou you do anything in your code that prevents caching?
That's what I am trying to find out.
How do I do this?
Thanks,
Tom Cheers, -- http://www.joergjooss.de mailto:ne****** **@joergjooss.d e
Hi, maybe i wasnt clear:
if the user has setup their browser to behave in this way (so that it will
never check for new versions of pages), then your site in fact should behave
this way. This is a very non-standard browser setup and any user with this
setting will have problems with using websites in general, including Google,
etc, not just your site.
-idi_amin
"tshad" wrote: "idi_amin" <id*****@discus sions.microsoft .com> wrote in message news:74******** *************** ***********@mic rosoft.com... make sure the IE setting for "Check for newer version of stored pages" is set to "Automatically" , which is the default. For some bizarre reason people sometimes change this setting to "Never" which leads to the behavior you are describing.
That's fine for me.
But I don't want this happening for people that are using my site as it will not work correctly when I make changes to my pages.
Tom
"tshad" wrote:
"Alvin Bruney [ASP.NET MVP]" <www.lulu.com/owc> wrote in message news:eC******** *****@TK2MSFTNG P15.phx.gbl... > maybe you should post a code sample of what you are experiencing
How would I do that?
The problem is just that if I go to a page in IE and then makes some changes - If I go to that same page, my browser will load the old version of the page. If the old page was looking for something that is not there any more, I would get an error. As soon as I hit the refresh button, the new version of the page gets loaded and it works fine.
It is hard to show it - as it is dependent on you loading a page and them my making a change that would cause it to fail if you re-ran it.
I only have that problem with IE.
Tom > > -- > Regards, > Alvin Bruney > [Shameless Author Plug] > The Microsoft Office Web Components Black Book with .NET > available at www.lulu.com/owc > _______________ __________ > > > "tshad" <ts**********@f tsolutions.com> wrote in message > news:uv******** *****@TK2MSFTNG P10.phx.gbl... >> How do we handle Caching in IE? >> >> It seems that my system works fine in Mozilla and Netscape when I make >> changes. >> >> But in IE the changes are not brought across when someone has been to >> the >> site before. If they have been here before and hit the same page, the >> old page is rendered which will cause errors as things that are >> expected >> with the new changes are not being done, such as session cookies being >> created or updated. >> >> I understand you can handle caching from the web.config, but why is IE >> having a problem and Mozilla not? >> >> Thanks, >> >> Tom >> > >
tshad wrote: "Joerg Jooss" <ne********@joe rgjooss.de> wrote in message news:xn******** ********@msnews .microsoft.com. .. tshad wrote:
"Alvin Bruney [ASP.NET MVP]" <www.lulu.com/owc> wrote in message news:eC******** *****@TK2MSFTNG P15.phx.gbl... > maybe you should post a code sample of what you are experiencing
How would I do that?
Dou you do anything in your code that prevents caching?
That's what I am trying to find out.
How do I do this?
Either set the OutputCache directive on your page(s)
<%@ OutputCache Location="None" %>
or set the Cache property of the HttpResponse in your code-behind class:
Response.Cache. SetCacheability (HttpCacheabili ty.NoCache);
(which is equivalent to the directive shown above)
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: siliconmike |
last post by:
I've configured apache to fetch filename.htm if user requests
filename.htm. But if filename.htm does not exist, apache will call
index.php.
Now, index.php will generate a page, buffer it using ob_start and then
save it as filename.htm (thus, effectively filename.htm is cached as
static
file on server hard disk)
Every 10 minutes a cron...
|
by: Mark E. Fenner |
last post by:
In the code below, the class DifferentCache utilizes three different
memoization (caching) strategies. Neither the function Memoize1 or
the class Memoize2 will be adequate for all three of these cases (I
intend these to be used as, for example,
getInstanceValueFunction = Memoize1(getInstanceValueFunction)
within the DifferentCache class...
|
by: jawahar Rajan |
last post by:
All,
I have a default setting of Response.Expires = 1200
is this 20 minutes? or 1200 minutes?
The problem I have is say user1 log-in to the web site,
and is a valid user, then I display on each page they
use "You are User1". User1 then then logs out.
Then user2 log-in and is a valid user the next page they
use however say "You are User1"
|
by: CJM |
last post by:
I'm working on an ASP application on my XP m/c.
I've uploaded a copy of the ASP code and accompanying DB onto another server
that is running both IIS5 & SQL Server. This is so that the development can
be demonstrated to key users at particular points.
However, when I access the application from my machine, I'm
getting to odd caching...
|
by: moondaddy |
last post by:
My default page stays constant in the site and all the content in the body
of the page is produced with user controls in a table cell for the body
section. The main function of this site is a products catalogue and the
products show in a datagrid in one of the user controls. This datagrid has
many rows and columns of images and this is what...
| |
by: Gavin Pollock |
last post by:
Is anyone using Caching (HttpRuntime.Cache) in Whidbey? Not sure if there's
another newsgroup for this though since it's still beta....
I'm having issues running a system built on 1.1 in a 2.0 environment...
Simple (I think!!) use of the Cache as below,
BOSContext bosContext = new BOSContext();
StringBuilder Html = new StringBuilder();
|
by: Rick Hein |
last post by:
I've got a problem with an app I've been working on, the Caching object and
events not firing correctly. In a nutshell: When I'm debugging, and I set a
breakpoint in the removed item call back, the code works correctly. If there
is no debugger it doesn't fire, which causes the app to have problems.
Here's what the code does: The...
|
by: George1776 |
last post by:
All,
I've recently upgraded our production ASP.NET/C# application from
framework 1.1 to 2.0. Since then I've been plagued by out-of-memory
errors and problems with the cache object (which may simply be a result
of being out of memory.)
We're running on IIS 5.1 on a single Windows 2000 server. We have a
separate database server - SQL...
|
by: Peter |
last post by:
Hi
The documentation for System.Web.Caching.Cache states that it is
"thread safe".
Does this mean that if I access System.Web.Caching.Cache from several
places in my application access to the items in the cache is
synchronised so I don't get problems with setting/getting the same item
at the same time?
|
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: 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...
|
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...
|
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: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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...
| |