vb.net - Clearing/Disabling browser cache ASP.NET VB -


for record, code clear or disable cache?

response.cache.setcacheability(httpcacheability.nocache) response.cache.setexpires(datetime.now.addseconds(1)) response.cache.setnostore() 

if yes, disable broweser's cache? or server cache? if no, right way of clearing browser's cache. again, browser's cache.

i found code.

foreach (dictionaryentry entry in httpcontext.current.cache){     httpcontext.current.cache.remove(string(entry.key)); } 

does delete browser's cache? goal clear browser's cache in login.aspx. thanks!

response.cache.setnostore() tells browser not cache page setting http header "cache-control" "no-cache". browser knows should not cache response.

httpcontext.current.cache on other hand server side caching. should store things there common users of application.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -