How can I check if a website is being cached correctly?
I would like the webpages to be cached by browsers, but I also would like that page updates be visible immediatly when a user visits teh webpage (eg not after a forced reload of the page), so no user ever gets to see stale content.
I'm a bit at a loss here on how to set the headers correctly (using nginx
or set them using php...) and I would like to play around with them a bit but I have no clue on how to debug this kind of stuff. so far I've been checking with curl if the headers at least look as expected, but this doesn't indicate if the behaviour will also be as expected..