Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
All-Star
19530 Points
3894 Posts
Jan 05, 2007 02:42 PM|LINK
By OutputCache directive you asking to hold the page in cache for 1 second. You need to remove that if you dont want to cache it.
Add these lines in the html meta section
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE"> <META HTTP-EQUIV="EXPIRES" CONTENT="0">
and in the page_load write this
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Thanks
e_screw
All-Star
19530 Points
3894 Posts
Re: How to disable cache
Jan 05, 2007 02:42 PM|LINK
By OutputCache directive you asking to hold the page in cache for 1 second. You need to remove that if you dont want to cache it.
Add these lines in the html meta section
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
<META HTTP-EQUIV="EXPIRES" CONTENT="0">
and in the page_load write this
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Thanks
Electronic Screw
Website||Blog||Dub@i.net