Re: [Tails-dev] Server-side caching settings of IDF

Delete this message

Reply to this message
Author: intrigeri
Date:  
To: Giorgio Maone
CC: The Tails public development discussion list
Subject: Re: [Tails-dev] Server-side caching settings of IDF
Hi Giorgio,

Giorgio Maone wrote (29 Mar 2016 23:06:08 GMT) :
> I believe that


> Cache-control: max-age=0


> header, which appears to be already there, actually causes the browser
> to revalidate every time, therefore producing an additional hit, even if
> the response for unchanged files is a body-empty "304 Not Modified".


Confirmed!

> Both "max-age" and Expire should reflect your expectation of how long
> the IDF is likely to remain valid (1 day? 1 week? 1 month?).


Right. The server now sets both Cache-Control and Expires headers to
"last access time + 2 hours", for IDFs.

How can I verify, from the client side, that DAVE honors these?
Using some Firefox developer tool, perhaps?

> Disclaimer: I'm not a caching guru, but this resource may help
> https://www.mnot.net/cache_docs/


Thanks, this was helpful :)

Cheers,
--
intrigeri