473,769 Members | 6,926 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

IE and Caching

I am having a problem with IE on one machine where it will not work after
the first time on certain pages. It appears to be going to the cache all
the time. On other machines I don't have that problem.

If I delete temporary files, it will work the first time.

If I close the browser and then open it again it won't work correctly,
unless I do a refresh on each and every page.

If I am going to my 3rd page, which depends on data kept in my session that
was put there from my 2nd page, it won't work.

I only seem to have this problem in IE.

Mozilla doesn't have this problem.

What is causing this and how do I get around it?

Thanks,

Tom
Nov 19 '05 #1
8 1219
How are you caching ?
Post the method you're using.

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
=============== =======

"tshad" <ts**********@f tsolutions.com> wrote in message
news:%2******** ********@TK2MSF TNGP15.phx.gbl. ..
I am having a problem with IE on one machine where it will not work after
the first time on certain pages. It appears to be going to the cache all
the time. On other machines I don't have that problem.

If I delete temporary files, it will work the first time.

If I close the browser and then open it again it won't work correctly,
unless I do a refresh on each and every page.

If I am going to my 3rd page, which depends on data kept in my session
that was put there from my 2nd page, it won't work.

I only seem to have this problem in IE.

Mozilla doesn't have this problem.

What is causing this and how do I get around it?

Thanks,

Tom

Nov 19 '05 #2
"Juan T. Llibre" <no***********@ nowhere.com> wrote in message
news:OD******** ******@TK2MSFTN GP12.phx.gbl...
How are you caching ?
Post the method you're using.

I'm not doing anything that I have set up, specifically.

Where do I look to see what is being done?

I assume it is not something that asp.net is doing or it would affect
Mozilla as well as IE (wouldn't it?).

Tom

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
=============== =======

"tshad" <ts**********@f tsolutions.com> wrote in message
news:%2******** ********@TK2MSF TNGP15.phx.gbl. ..
I am having a problem with IE on one machine where it will not work after
the first time on certain pages. It appears to be going to the cache all
the time. On other machines I don't have that problem.

If I delete temporary files, it will work the first time.

If I close the browser and then open it again it won't work correctly,
unless I do a refresh on each and every page.

If I am going to my 3rd page, which depends on data kept in my session
that was put there from my 2nd page, it won't work.

I only seem to have this problem in IE.

Mozilla doesn't have this problem.

What is causing this and how do I get around it?

Thanks,

Tom


Nov 19 '05 #3
tshad,

Check Caching settins in Tools>Options>S ettings and make sure that it is
"Automatica lly" or "Every visit to page".


"tshad" wrote:
"Juan T. Llibre" <no***********@ nowhere.com> wrote in message
news:OD******** ******@TK2MSFTN GP12.phx.gbl...
How are you caching ?
Post the method you're using.


I'm not doing anything that I have set up, specifically.

Where do I look to see what is being done?

I assume it is not something that asp.net is doing or it would affect
Mozilla as well as IE (wouldn't it?).

Tom


Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
=============== =======

"tshad" <ts**********@f tsolutions.com> wrote in message
news:%2******** ********@TK2MSF TNGP15.phx.gbl. ..
I am having a problem with IE on one machine where it will not work after
the first time on certain pages. It appears to be going to the cache all
the time. On other machines I don't have that problem.

If I delete temporary files, it will work the first time.

If I close the browser and then open it again it won't work correctly,
unless I do a refresh on each and every page.

If I am going to my 3rd page, which depends on data kept in my session
that was put there from my 2nd page, it won't work.

I only seem to have this problem in IE.

Mozilla doesn't have this problem.

What is causing this and how do I get around it?

Thanks,

Tom



Nov 19 '05 #4
"suresh_C#" <su*****@discus sions.microsoft .com> wrote in message
news:16******** *************** ***********@mic rosoft.com...
tshad,

Check Caching settins in Tools>Options>S ettings and make sure that it is
"Automatica lly" or "Every visit to page".
That was it.

It was set to never.

But how do I deal with the user that has it set to "Never". My problem is
that I need to make sure that the user always checks (except for the back
button).

Thanks,

Tom
"tshad" wrote:
"Juan T. Llibre" <no***********@ nowhere.com> wrote in message
news:OD******** ******@TK2MSFTN GP12.phx.gbl...
> How are you caching ?
> Post the method you're using.
>


I'm not doing anything that I have set up, specifically.

Where do I look to see what is being done?

I assume it is not something that asp.net is doing or it would affect
Mozilla as well as IE (wouldn't it?).

Tom
>
>
> Juan T. Llibre
> ASP.NET MVP
> http://asp.net.do/foros/
> Foros de ASP.NET en Español
> Ven, y hablemos de ASP.NET...
> =============== =======
>
> "tshad" <ts**********@f tsolutions.com> wrote in message
> news:%2******** ********@TK2MSF TNGP15.phx.gbl. ..
>>I am having a problem with IE on one machine where it will not work
>>after
>>the first time on certain pages. It appears to be going to the cache
>>all
>>the time. On other machines I don't have that problem.
>>
>> If I delete temporary files, it will work the first time.
>>
>> If I close the browser and then open it again it won't work correctly,
>> unless I do a refresh on each and every page.
>>
>> If I am going to my 3rd page, which depends on data kept in my session
>> that was put there from my 2nd page, it won't work.
>>
>> I only seem to have this problem in IE.
>>
>> Mozilla doesn't have this problem.
>>
>> What is causing this and how do I get around it?
>>
>> Thanks,
>>
>> Tom
>>
>
>


Nov 19 '05 #5
re:
I assume it is not something that asp.net is doing or it would affect
Mozilla as well as IE (wouldn't it?).
Actually, if you're caching the wrong way,
it could affect some browsers and not others.

Many programmers try to use "pragma" or old ASP caching methods.

The correct way to *not* cache in ASP.NET,
so that all browsers respect that command, is to use :

Response.Cache. SetCacheability (HttpCacheabili ty.NoCache)

That way, the page won't even be stored in the cache,
so you won't have to go and delete it manually.

It will *always* be the "first time", so it should *alsways* work.

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
=============== =======

"tshad" <ts**********@f tsolutions.com> wrote in message
news:eo******** ******@tk2msftn gp13.phx.gbl... "Juan T. Llibre" <no***********@ nowhere.com> wrote in message
news:OD******** ******@TK2MSFTN GP12.phx.gbl...
How are you caching ?
Post the method you're using.


I'm not doing anything that I have set up, specifically.

Where do I look to see what is being done?

I assume it is not something that asp.net is doing or it would affect
Mozilla as well as IE (wouldn't it?).

Tom


Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
=============== =======

"tshad" <ts**********@f tsolutions.com> wrote in message
news:%2******** ********@TK2MSF TNGP15.phx.gbl. ..
I am having a problem with IE on one machine where it will not work after
the first time on certain pages. It appears to be going to the cache all
the time. On other machines I don't have that problem.

If I delete temporary files, it will work the first time.
4>>> If I close the browser and then open it again it won't work correctly, unless I do a refresh on each and every page.

If I am going to my 3rd page, which depends on data kept in my session
that was put there from my 2nd page, it won't work.

I only seem to have this problem in IE.

Mozilla doesn't have this problem.

What is causing this and how do I get around it?

Thanks,

Tom



Nov 19 '05 #6

"Juan T. Llibre" <no***********@ nowhere.com> wrote in message
news:OS******** ******@tk2msftn gp13.phx.gbl...
re:
I assume it is not something that asp.net is doing or it would affect
Mozilla as well as IE (wouldn't it?).
Actually, if you're caching the wrong way,
it could affect some browsers and not others.

Many programmers try to use "pragma" or old ASP caching methods.

The correct way to *not* cache in ASP.NET,
so that all browsers respect that command, is to use :

Response.Cache. SetCacheability (HttpCacheabili ty.NoCache)


Where does this go and do you put it in each page?

Tom

That way, the page won't even be stored in the cache,
so you won't have to go and delete it manually.

It will *always* be the "first time", so it should *alsways* work.

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
=============== =======

"tshad" <ts**********@f tsolutions.com> wrote in message
news:eo******** ******@tk2msftn gp13.phx.gbl...
"Juan T. Llibre" <no***********@ nowhere.com> wrote in message
news:OD******** ******@TK2MSFTN GP12.phx.gbl...
How are you caching ?
Post the method you're using.


I'm not doing anything that I have set up, specifically.

Where do I look to see what is being done?

I assume it is not something that asp.net is doing or it would affect
Mozilla as well as IE (wouldn't it?).

Tom


Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
=============== =======

"tshad" <ts**********@f tsolutions.com> wrote in message
news:%2******** ********@TK2MSF TNGP15.phx.gbl. ..
I am having a problem with IE on one machine where it will not work
after the first time on certain pages. It appears to be going to the
cache all the time. On other machines I don't have that problem.

If I delete temporary files, it will work the first time.
4>>> If I close the browser and then open it again it won't work
correctly, unless I do a refresh on each and every page.

If I am going to my 3rd page, which depends on data kept in my session
that was put there from my 2nd page, it won't work.

I only seem to have this problem in IE.

Mozilla doesn't have this problem.

What is causing this and how do I get around it?

Thanks,

Tom



Nov 19 '05 #7

tshad,

We dont have access to this setting via Server, but
1) You can *request* browser and intermidiate proxy not to cache the page.
2) If you want a few pages must be passed through the server, attach random
number like current datetime to the form action. This will force all browser
to go to the server.

"tshad" wrote:
"suresh_C#" <su*****@discus sions.microsoft .com> wrote in message
news:16******** *************** ***********@mic rosoft.com...
tshad,

Check Caching settins in Tools>Options>S ettings and make sure that it is
"Automatica lly" or "Every visit to page".

That was it.

It was set to never.

But how do I deal with the user that has it set to "Never". My problem is
that I need to make sure that the user always checks (except for the back
button).

Thanks,

Tom

"tshad" wrote:
"Juan T. Llibre" <no***********@ nowhere.com> wrote in message
news:OD******** ******@TK2MSFTN GP12.phx.gbl...
> How are you caching ?
> Post the method you're using.
>

I'm not doing anything that I have set up, specifically.

Where do I look to see what is being done?

I assume it is not something that asp.net is doing or it would affect
Mozilla as well as IE (wouldn't it?).

Tom
>
>
> Juan T. Llibre
> ASP.NET MVP
> http://asp.net.do/foros/
> Foros de ASP.NET en Español
> Ven, y hablemos de ASP.NET...
> =============== =======
>
> "tshad" <ts**********@f tsolutions.com> wrote in message
> news:%2******** ********@TK2MSF TNGP15.phx.gbl. ..
>>I am having a problem with IE on one machine where it will not work
>>after
>>the first time on certain pages. It appears to be going to the cache
>>all
>>the time. On other machines I don't have that problem.
>>
>> If I delete temporary files, it will work the first time.
>>
>> If I close the browser and then open it again it won't work correctly,
>> unless I do a refresh on each and every page.
>>
>> If I am going to my 3rd page, which depends on data kept in my session
>> that was put there from my 2nd page, it won't work.
>>
>> I only seem to have this problem in IE.
>>
>> Mozilla doesn't have this problem.
>>
>> What is causing this and how do I get around it?
>>
>> Thanks,
>>
>> Tom
>>
>
>


Nov 19 '05 #8
You can set it in the codebehind with that code.

If you are not using codebehind, you can set it as a
directive at the top of the page, after <%@ Page ... %>

i.e. :
<%@ Page Language="VB" %>
<%@ OutputCache Location="None" %>

or...

<%@ Page Language="C#" %>
<%@ OutputCache Location="None" %>


Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
=============== =======

"tshad" <ts**********@f tsolutions.com> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..

"Juan T. Llibre" <no***********@ nowhere.com> wrote in message
news:OS******** ******@tk2msftn gp13.phx.gbl...
re:
I assume it is not something that asp.net is doing or it would affect
Mozilla as well as IE (wouldn't it?).


Actually, if you're caching the wrong way,
it could affect some browsers and not others.

Many programmers try to use "pragma" or old ASP caching methods.

The correct way to *not* cache in ASP.NET,
so that all browsers respect that command, is to use :

Response.Cache. SetCacheability (HttpCacheabili ty.NoCache)


Where does this go and do you put it in each page?

Tom

That way, the page won't even be stored in the cache,
so you won't have to go and delete it manually.

It will *always* be the "first time", so it should *alsways* work.

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
=============== =======

"tshad" <ts**********@f tsolutions.com> wrote in message
news:eo******** ******@tk2msftn gp13.phx.gbl...
"Juan T. Llibre" <no***********@ nowhere.com> wrote in message
news:OD******** ******@TK2MSFTN GP12.phx.gbl...
How are you caching ?
Post the method you're using.
I'm not doing anything that I have set up, specifically.

Where do I look to see what is being done?

I assume it is not something that asp.net is doing or it would affect
Mozilla as well as IE (wouldn't it?).

Tom
Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
=============== =======

"tshad" <ts**********@f tsolutions.com> wrote in message
news:%2******** ********@TK2MSF TNGP15.phx.gbl. ..
>I am having a problem with IE on one machine where it will not work
>after the first time on certain pages. It appears to be going to the
>cache all the time. On other machines I don't have that problem.
>
> If I delete temporary files, it will work the first time.
>

4>>> If I close the browser and then open it again it won't work
correctly,
> unless I do a refresh on each and every page.
>
> If I am going to my 3rd page, which depends on data kept in my session
> that was put there from my 2nd page, it won't work.
>
> I only seem to have this problem in IE.
>
> Mozilla doesn't have this problem.
>
> What is causing this and how do I get around it?
>
> Thanks,
>
> Tom
>



Nov 19 '05 #9

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

Similar topics

15
3419
by: olle | last post by:
Hi folks. I learning asp.net and compare it with traditional asp and Access-developing. The issue is this one: 1/I have this Ms Acceess adp-project application that works fine on my Ms Sql server database. In my main form I have an Access-combobox with Customer-names from my customer table. In this combo-box are about 2000 records.
1
1605
by: moko | last post by:
I want to know whether 'dataset caching' is at the client end , or the server ? Similarly is an aspx page caching at the server or client ? Are there any 'gotchas' with caching ?
0
1741
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...
3
1642
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...
1
1575
by: Leo Muller | last post by:
I am impressed by the caching performance of .NET. However, there is one major obstacle that I haven't managed to solve yet. What I want to do is the following: I have a normal site, and a preview site. The normal site should have maximum performance, thus uses caching. The preview site is for internal use only, and should not use caching, since our content managers will want to see the updates directly. The only difference between the...
3
2489
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,
5
7857
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) ??...
2
6139
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 Server 2000 64 bit. Session state is stored on the database.
0
2184
by: jason | last post by:
hi experts, support.microsoft.com/kb/917072 and http://msdn.microsoft.com/msdnmag/issues/06/07/WebAppFollies/ As pointed out in these articles, users might get session variables belong to other user ? So ....Session state and kernel-mode output caching don't mix. Has this bug been fixed?
4
2984
by: Hermann | last post by:
My site is a bit slow showing the main page so I thought caching query result in PHP will improve performace. Then I read MySQL documentation and saw that MySQL does have a caching feature. So... now I dont know if doing the PHP caching is worth the pain. Would there be any noticed performace improvement if I cache query results in PHP, considering that MySQL is already caching the queries? Thanks
0
9589
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, 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...
0
10214
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, 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...
0
10048
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9996
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
8872
agi2029
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5304
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...
0
5447
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3563
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
bsmnconsultancy
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...

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.