I'm trying to invalidate browser cache after 1 hour. In response header I have tried to add the following parameters.
Cache-Control:max-age=3600
Its working when I'm reloading the page or refreshing the page. But when using the back/forward button in browser it still loading from the browser. Is there any way /suggetsion to resolve this?
NB: When I googled it most the articles suggesting to use no-store
parameter in Cache-Control
. But at that time it will not use the browser cache all the time. And I need to use browser cache for first 1 hour after loading the page. After that it should load from server.