Click here to Skip to main content
15,898,222 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have to implement cashing in asp.net...

i added following tag after page directive in design(abc.aspx)
<%@ OutputCache Duration="120" VaryByParam="none" %>

When i press enter key in address bar , caching works properly..but when hit on refresh in browser request is made and new dynamic content is displayed in browser...can u give me clarification on addressbar enter event and refresh button event on browser..
Posted
Updated 4-Aug-11 1:48am
v2

1 solution

Your browser is doing what it is supposed to do. A refresh always ignores the Cache and hits the server for the latest version of the resource.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900