Re: IE and Caching
- From: "Juan T. Llibre" <nomailreplies@xxxxxxxxxxx>
- Date: Thu, 21 Apr 2005 18:39:47 -0400
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.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" <tscheiderich@xxxxxxxxxxxxxxx> wrote in message
news:eoHPzhrRFHA.3788@xxxxxxxxxxxxxxxxxxxxxxx
> "Juan T. Llibre" <nomailreplies@xxxxxxxxxxx> wrote in message
> news:ODfYr8qRFHA.2784@xxxxxxxxxxxxxxxxxxxxxxx
>> 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" <tscheiderich@xxxxxxxxxxxxxxx> wrote in message
>> news:%23zMKnzqRFHA.2964@xxxxxxxxxxxxxxxxxxxxxxx
>>>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
>>>
>>
>>
>
>
.
- Follow-Ups:
- Re: IE and Caching
- From: tshad
- Re: IE and Caching
- References:
- IE and Caching
- From: tshad
- Re: IE and Caching
- From: Juan T. Llibre
- Re: IE and Caching
- From: tshad
- IE and Caching
- Prev by Date: Re: New to ASP.NET - A very basic question regarding the ViewState and Server Round Trips
- Next by Date: Re: Strange session timeout problem(urgent help needed).
- Previous by thread: Re: IE and Caching
- Next by thread: Re: IE and Caching
- Index(es):
Relevant Pages
|