Page cache expire after a certain amount of time asp.net 2.0 c #

I have an application built on asp.net 2.0 (C#)

and I am trying to do this clear the browser cache after certain interval of time

. Suppose the landing page of the application is A.aspx and the user navigates to another B.aspx page from A.aspx, then if the user clicks back button from the browser

goes back to A.aspx within 10mins

I want to page to load from the cache

, but if the user tries to go to the A.aspx page after 10mins

then I want page to load from the server or some other link

from the app. How can I acheieve this across all browsers

?

I tried to install:

Response.Cache.AppendCacheExtension("must-revalidate"); Response.Cache.AppendCacheExtension("max-age=120");



with partial success in Internet Explorer

, but not with other browsers

.

Any help would be much appreciated!

Thank.

+3
javascript jquery caching asp.net browser-cache


source to share


No one has answered this question yet

Check out similar questions:

1398
How do we control web page caching in all browsers?
268
How can I prevent the reverse key from going backwards?
3
How to stop an ASP.NET Web Forms page by caching different versions
2
Don't set cache in ASP.NET for a specific page?
2
Is there a way to undo the return button?
1
Form resubmission confirmation - page data expired after page was submitted to asp.net
1
Clear browser cache after navigation form page
1
use server.transfer and achieve consistent url in asp.net
0
C # asp store variable between update for 1 tab / page only
-1
How to remove cache after logout in asp.net core



All Articles
Loading...
X
Show
Funny
Dev
Pics