Re: IE and Caching



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
>>>
>>
>>
>
>


.



Relevant Pages

  • Re: Browser Questions
    ... writing all this in here about browsers, ... Marc...I am using Firefox, not the suite. ... When I said Mozilla, I meant ... >> can import favorites and other things from IE into Mozilla and Netscape, ...
    (alt.os.windows-xp)
  • Re: Does Macintosh read uppercase?
    ... To Murray & Jim: ... If it fails on mozilla or firefox but runs on IE, ... > the mozilla browsers as well as Internet Explorer. ... >> have to rename the fields and their references in the javascript to all ...
    (microsoft.public.frontpage.programming)
  • Re: [SLE] LPRng and Mozilla - printing problem
    ... >>If I start printing the named browsers stop. ... >>print command, Mozilla stops responding. ... >>I must say that under SuSE 9.0 everything is OK. ... On Tuesday I am going to install the clean 9.1 on ...
    (SuSE)
  • Re: FTM2006
    ... Headline: Symantec: Mozilla browsers more vulnerable than IE ... Mozilla has released an update to Firefox to fix several ...
    (soc.genealogy.computing)
  • Re: The "undefined" value
    ... a MAJOR website is telling me that I should use the ... They are perhaps also forgetting to tell you that the language ... The browsers supporting multiple dialects include Netscape ... and Mozilla based browsers. ...
    (comp.lang.javascript)