473,386 Members | 1,758 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,386 software developers and data experts.

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 1193
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**********@ftsolutions.com> wrote in message
news:%2****************@TK2MSFTNGP15.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**************@TK2MSFTNGP12.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**********@ftsolutions.com> wrote in message
news:%2****************@TK2MSFTNGP15.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>Settings and make sure that it is
"Automatically" or "Every visit to page".


"tshad" wrote:
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:OD**************@TK2MSFTNGP12.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**********@ftsolutions.com> wrote in message
news:%2****************@TK2MSFTNGP15.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*****@discussions.microsoft.com> wrote in message
news:16**********************************@microsof t.com...
tshad,

Check Caching settins in Tools>Options>Settings and make sure that it is
"Automatically" 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**************@TK2MSFTNGP12.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**********@ftsolutions.com> wrote in message
> news:%2****************@TK2MSFTNGP15.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(HttpCacheability.No Cache)

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**********@ftsolutions.com> wrote in message
news:eo**************@tk2msftngp13.phx.gbl... "Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:OD**************@TK2MSFTNGP12.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**********@ftsolutions.com> wrote in message
news:%2****************@TK2MSFTNGP15.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**************@tk2msftngp13.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(HttpCacheability.No Cache)


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**********@ftsolutions.com> wrote in message
news:eo**************@tk2msftngp13.phx.gbl...
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:OD**************@TK2MSFTNGP12.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**********@ftsolutions.com> wrote in message
news:%2****************@TK2MSFTNGP15.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*****@discussions.microsoft.com> wrote in message
news:16**********************************@microsof t.com...
tshad,

Check Caching settins in Tools>Options>Settings and make sure that it is
"Automatically" 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**************@TK2MSFTNGP12.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**********@ftsolutions.com> wrote in message
> news:%2****************@TK2MSFTNGP15.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**********@ftsolutions.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...

"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:OS**************@tk2msftngp13.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(HttpCacheability.No Cache)


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**********@ftsolutions.com> wrote in message
news:eo**************@tk2msftngp13.phx.gbl...
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:OD**************@TK2MSFTNGP12.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**********@ftsolutions.com> wrote in message
news:%2****************@TK2MSFTNGP15.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
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...
1
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
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...
3
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...
1
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...
3
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...
5
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),...
2
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...
0
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...
4
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......
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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.