If I want browsers to load PDF files from cache until they changed on the server, do I have to use max-age=0
and must-revalidate
as cache-control headers?
If I would use another value (larger than 0) for max-age
would that mean the revalidation would only happen once the max-age value was exceeded?
What would happen if I would only set the must-revalidate
header without max-age?
I was reading through this question and I am not 100% sure.
Also, what exactly does revalidate mean? Does it mean the client asks the server if the file has changed?
On the contrary, I've read that cache-control no-cache pretty much does what I want to achieve. Cache and check with the server if there is a new version... so whats the correct way?