How can I determine if an ASP.NET page is in the cache or not?

I need to find if a webpage is cached or not. It reloaded or reappeared in cache.

0
caching asp.net


source to share


2 answers


Include the generated timestamp somewhere in your answer and store the timestamp somewhere on the server (possibly in a cache object). This way you know the version of the page by examining these values.



If you could elaborate more on the scenario you ran into, I'm sure you will get a better answer.

+2


source to share


You have client-side or server-side caching, and they are discrete as they don't know about each other.



On the server side, check the Response.Cache object.

+1


source to share







All Articles
Loading...
X
Show
Funny
Dev
Pics