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


source to share





All Articles