I forgot to mention that hopefully, I'd like to send the "Last- Modified" header too. Obviously I understood that it's possible via the Response object. I'm already doing so in dynamic parts of the app. But static files aren't sending those headers.
I looked through akhet, and discovered it's relying on pyramid.view.static solely on this matter. It's not returning a Response object itself. On Jun 19, 1:47 pm, He Shiming <[email protected]> wrote: > Hi, > > At document of > pyramid.view.static:http://docs.pylonsproject.org/projects/pyramid/1.0/api/view.html > , it says cache_max_age argument affects "Expires" and "Max-Age" http > response header. In practice, I found that by setting this value, it > affects only "Cache-Control" response header. > > I'm relying on akhet's add_static_route to serve static files. Which > in turn, relies on pyramid.view.static . Is there any easy way to make > pyramid send the "Expires" header? > > I'm particularly interested in this header directive because I'm > trying to solve an IE6 problem at server side. The details are > here:http://ahinea.com/en/tech/ie-dhtml-image-caching.html. > > Thanks! > He Shiming He Shiming -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected]. 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.
