I want to tell the browser to act in a specific way using Cache-Control
header:
- Always ask for a fresh version of the page, as you would do with
no-store
BUT
- Cache the content anyway, just in case the server does not respond / responds too slowly (an old version is better than nothing)
I thought that no-cache
would have been the right header, but if I use it the browser serves the cached version even if the server is available.
What should I do? Could If-Modified-Since or If-None-Match be useful for my purpose?
Thanks in advance.