On 9/17/07, Ian Bicking <[EMAIL PROTECTED]> wrote:
> > There is an option cache_max_age to StaticURLParser, which sets
> > Cache-Control: max-age=X. This should cause caching to improve.
> >
> >
> > How/where can I set this?
>
> I'm not sure exactly where in Pylons this is instantiated. It would
> probably be nice if Pylons could accept this configuration and pass it on.
At the bottom of middleware.py.
static_app = StaticURLParser(
config['pylons.paths]['static_files'],
cache_max_age=3600)
--
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 [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
-~----------~----~----~----~------~----~------~--~---