Nuffnang

Your Ad Here

Thursday, July 9, 2009

Force asp.net pages to load from server everytime

This is how i force the asp.net pages to load from server everytime user browse to the page instead of loading from cache...

Response.Cache.SetCacheability(HttpCacheability.NoCache);

2 comments:

Radius said...

well.. its simply turning off the cache. On a busy website, turning off the cache won't be a perfect solution. 1 thing for sure, more loads on your server and takes up more bandwidth. Think you have to analyze it properly before deciding to turn off the cache. If its really necessary then its cool but if not, just leave it on.

The Devil said...

wat to do.. client wan it ma... somemore the website not much visitors also except their own staffs and other country office staffs...