I'm also trying to cache static files.  In middleware.py:

    static_app = StaticURLParser(config.paths['static_files'],
        max_cache_age=360)

This does use ETAG and 304 but it's not using the browser cache:

http://localhost:5000/images/banner.jpg



GET /images/banner.jpg HTTP/1.1

Host: localhost:5000

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.3)
Gecko/20061201 Firefox/2.0.0.3 (Ubuntu-feisty)

Accept: image/png,*/*;q=0.5

Accept-Language: en-us,en;q=0.5

Accept-Encoding: gzip,deflate

Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7

Keep-Alive: 300

Connection: keep-alive

Referer: http://localhost:5000/default.css

Cookie: beaker.session.id=90cdc56ab4015b90ec4e24a979331662

If-Modified-Since: Tue, 12 Jun 2007 01:42:42 GMT

If-None-Match: 1181612562.0-55416

Cache-Control: max-age=0



HTTP/1.x 304 Not Modified

Server: PasteWSGIServer/0.5 Python/2.5.1

Date: Tue, 12 Jun 2007 21:56:37 GMT

Accept-Ranges: bytes

Etag: 1181612562.0-55416

Connection: close




-- 
Mike Orr <[EMAIL PROTECTED]>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to