Disable caching

  • Thread starter Thread starter Mantorok
  • Start date Start date
M

Mantorok

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

Kev

Islamegy® said:
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
 
Back
Top