Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Disable caching

Reply
Thread Tools

Disable caching

 
 
Mantorok
Guest
Posts: n/a
 
      08-15-2006
Hi

Is there an easy way to disable ALL client-side caching for my entire
web-site?

Is there also an easy way to cause any "refreshes" and "back" actions to
cause an automatic re-direct to my login page?

Thanks
Kev


 
Reply With Quote
 
 
 
 
Islamegy®
Guest
Posts: n/a
 
      08-15-2006
To disable client-side cache use meta tag
<META HTTP-EQUIV ="Expire" CONTENT ="0">

2nd, refresh action.. use
if(IsPostBack)
{
Response.Redirect("login.aspx");
}

3- back action
check the Browser Referrer
if(Request.UrlReferrer.AbsoluteUri =="http://......")
Note : This will only work after disable cache.
Good luck

"Mantorok" <> wrote in message
news:ebs8lu$4g6$...
> Hi
>
> Is there an easy way to disable ALL client-side caching for my entire
> web-site?
>
> Is there also an easy way to cause any "refreshes" and "back" actions to
> cause an automatic re-direct to my login page?
>
> Thanks
> Kev
>



 
Reply With Quote
 
 
 
 
Mantorok
Guest
Posts: n/a
 
      08-15-2006
Thanks!

Kev

"Islamegy®" <Islamegy@Private.4me> wrote in message
news:...
> To disable client-side cache use meta tag
> <META HTTP-EQUIV ="Expire" CONTENT ="0">
>
> 2nd, refresh action.. use
> if(IsPostBack)
> {
> Response.Redirect("login.aspx");
> }
>
> 3- back action
> check the Browser Referrer
> if(Request.UrlReferrer.AbsoluteUri =="http://......")
> Note : This will only work after disable cache.
> Good luck
>
> "Mantorok" <> wrote in message
> news:ebs8lu$4g6$...
>> Hi
>>
>> Is there an easy way to disable ALL client-side caching for my entire
>> web-site?
>>
>> Is there also an easy way to cause any "refreshes" and "back" actions to
>> cause an automatic re-direct to my login page?
>>
>> Thanks
>> Kev
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Disable page caching without disabling caching of jpegs andstylesheets etc JimLad ASP .Net 3 01-21-2010 10:13 AM
ASP.NET Image Caching Problem (How to Disable it?) Mike Sobeiski ASP .Net 2 08-07-2004 05:28 PM
Disable Image Caching Kamyar Souri ASP .Net 1 05-13-2004 09:49 AM
Fragment Caching inside page caching? Troy Simpson ASP .Net 0 01-19-2004 11:57 AM
trouble with caching or caching the trouble Hypo ASP .Net 6 08-01-2003 07:11 AM



Advertisments