[Twisted-web] Static.File and browser caching
James Y Knight
foom at fuhm.net
Thu Mar 31 18:14:42 MST 2005
On Mar 31, 2005, at 4:47 PM, Matt Feifarek wrote:
> Hello.
>
> Static.File doesn't seem to support any of the cache features that
> modern browsers use.
static.File supports If-Modified-Since and Last-Modified:
Try running:
$ curl -H'If-Modified-Since: Mon, 28 Mar 2005 04:58:37 GMT' -i
'http://twistedmatrix.com/'
and notice how it returns a 304 Not Modified.
Cache-Control and Expires are not relevant to a static file resource.
But yes, it's not returning an ETag.
James
More information about the Twisted-web
mailing list