These are chat archives for cherrypy/cherrypy

9th
Oct 2018
Giancarlos
@Giancarlos
Oct 09 2018 16:13
seems to be that the browser is getting no-cache but the browser does not care and loads the files from cache
Sviatoslav Sydorenko
@webknjaz
Oct 09 2018 16:14
curious
what's the browser?
Giancarlos
@Giancarlos
Oct 09 2018 16:15
both Firefox (latest, or at least after Quantum) and Google Chrome
I found this StackOverflow question that blames the Back button as having that behavior but I'm seeing it when hitting 'F5' or revisiting a page days / weeks later
I don't mind if the back button has that behaviour... that makes sense, it's your history, but revisiting via direct hyperlink or reloading a page should honor the headers
Sviatoslav Sydorenko
@webknjaz
Oct 09 2018 16:22
yeah
I don't know how to help you. Maybe browsers want some other headers. That's definitely not CherryPy's problem, though.
Have you cleaned up the old cache before starting tests?
https://www.incapsula.com/cdn-guide/glossary/cache-control.html
Cache-Control: No-Cache
The no-cache directive means that a browser may cache a response, but must first submit a validation request to an origin server.
Sviatoslav Sydorenko
@webknjaz
Oct 09 2018 16:29
Here's a cross-browser suggestion of multiple headers you need to send from SO: https://stackoverflow.com/a/2068407
Giancarlos
@Giancarlos
Oct 09 2018 16:54
yeah I saw that some of them require different headers... not sure why browsers behave so oddly in the matter... but yeah I figure it's not cherrypy's fault if the browser is being dumb, just might have to write that tool after all