Disable caching

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
 
I

Islamegy®

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
 
M

Mantorok

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
473,754
Messages
2,569,526
Members
44,997
Latest member
mileyka

Latest Threads

Top