Re: Prevent Caching in Dotnet

From: Steve Turley (sturley@online.microsoft.com)
Date: 09/16/02


From: "Steve Turley" <sturley@online.microsoft.com>
Date: Mon, 16 Sep 2002 11:12:33 -0700


Response.Cache.SetCacheability(HttpCacheability.NoCache);

--
This posting is provided "AS IS" with no warranties, and confers no rights.
Please do not reply directly to this email address; it is intended  for
newsgroup purposes only.
"Eric Tan" <eric.tan@ondot.com.sg> wrote in message
news:#tixrU1TCHA.1900@tkmsftngp13...
> Hi,
>
> Would like to find out how do i prevent my page to be cache... currently
my
> page had been cache upon accessing thus causing some problem when my page
is
> using a lot of session.. how do i do that? i noe that by putting
> Response.Expires in the pages will do the trick, but is there a more
elegant
> way of doing so for the whole application?? if not i had to put that at
all
> the pages which is real tedious.... could i put it in web.conifg or
> global.asac??
>
> Thanx in advance...
>
>
> Regards
> Eric
>
>


Relevant Pages