Re: [pylons-discuss] How set X-Accel-Expires in add_view, add_static_view

2014-07-28 Thread Michael Merickel
Your setting to `add_view` is currently being dropped. It's not valid to pass arbitrary things to `add_view`. A good way would be to mutate the response via a decorator, adding the header in yourself. No need for a tween. def x_accel_expires(max_age): def decorator(view): def

[pylons-discuss] How set X-Accel-Expires in add_view, add_static_view

2014-07-20 Thread Grigorii Eremeev
Hello I want use cache nginx and cache browser. For managing cache nginx i use X-Accel-Expires. For managing cache browser i use Cache-Control. Cache-Control is simple, need set parameters http_cache in add_view and cache_max_age in add_static_view. But how set X-Accel-Expires in same