[tahoe-dev] 'Client' caching?

Kevin Reid kpreid at mac.com
Thu Nov 26 19:39:11 UTC 2009

On Nov 26, 2009, at 14:09, Brian Warner wrote:

> Hm, I'm surprised that didn't work. Do you know what caused Squid to  
> believe the file was changing each time? Maybe a quick peek at the  
> returned headers would be informative.
> Basically, any URL that starts with /uri/URI:CHK: should be  
> immutable and an ideal choice for caching. We'd planned (although I  
> can't check right now to see whether we got around to implementing  
> it or not) to add an ETag: header with the file's UEB header, which  
> is basically a hash of the contents, and thus an ideal etag. And I  
> know we aren't intentionally adding any Cache-Control or date  
> headers that might make the file look uncacheable.




	• This response can be stored by any cache.
	• This response is stale.
	• This response allows heuristic freshness to be used.
	• This response can be served stale.

I'm no expert on HTTP caching but perhaps Squid requires "non- 
heuristic freshness", (i.e. explicit expiration information?) before  
it will cache anything.

It also says that "The Etag header's syntax isn't valid.", which is  
true in that per the linked RFC the ETag ought to be quoted. But in my  
experience Apache also generates the same sort of bad tag by default,  

Kevin Reid                                  <http://switchb.org/kpreid/>

More information about the tahoe-dev mailing list