Re: Is there a default setting for http_cache?

2013-06-12 Thread Brian Sutherland
On Wed, Jun 12, 2013 at 03:39:09AM +0200, Christoph Zwerschke wrote: Is it possible to set the http_cache parameter globally for all views in a Pyramid application? I'm pretty sure you could do this in a tween or WSGI middleware. But I don't know of a specific knob. -- Brian Sutherland --

Re: Is there a default setting for http_cache?

2013-06-12 Thread Paweł Dobrowolski
I used to do things like that using wrapped view_config decorator. https://gist.github.com/pmdz/5763651 On 06/12/2013 03:39 AM, Christoph Zwerschke wrote: Is it possible to set the http_cache parameter globally for all views in a Pyramid application? -- Christoph -- You received this

Is there a default setting for http_cache?

2013-06-11 Thread Christoph Zwerschke
Is it possible to set the http_cache parameter globally for all views in a Pyramid application? -- Christoph -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: Is there a default setting for http_cache?

2013-06-11 Thread Michael Merickel
There is not a default setting for http_cache right now. On Tue, Jun 11, 2013 at 8:39 PM, Christoph Zwerschke c...@online.de wrote: Is it possible to set the http_cache parameter globally for all views in a Pyramid application? -- Christoph -- You received this message because you

Re: Is there a default setting for http_cache?

2013-06-11 Thread Chip Kellam
You can do this as a class-based view default, but I don't know any other way. eg: @view_defaults(http_cache=0) class SomeViewClass(): ... On Tuesday, June 11, 2013 9:39:09 PM UTC-4, Christoph Zwerschke wrote: Is it possible to set the http_cache parameter globally for all views in