pando.py
pando.py copied to clipboard
should set cache headers on static resources
specify this how? where? an outbound hook?
StaticResource?
This is my go-to for HTTP caching: http://www.mnot.net/cache_docs/
So, there's options here:
-
Add Last-Modified: headers on outbound responses, and respond to If-Modified-Since: headers with a 304 if appropriate
-
Add ETags: headers on outbound responses and respond to If-None-Match: headers with a 304 if appropriate
-
Both of the above.
Which did you have in mind? or, something else?
@pjz Both. Don't you think?
So in reading the link above, there's a library cgi_buffer that claims to handle this caching stuff automatically.
Pull requests accepted!
@colindean For better or for worse, Aspen isn't a CGI app, so afaict that library won't help us. Maybe we can use their code as an example?
Implemented in www.gittip.com ; should pull it from there.