Re: [RFC] enhancement: mod_cache bypass

2014-08-24 Thread Mark Montague
On 2014-08-23 12:36, Graham Leggett wrote: On 23 Aug 2014, at 3:40 PM, Mark Montague m...@catseye.org wrote: [root@sky ~]# httpd -t AH00526: Syntax error on line 148 of /etc/httpd/conf/dev.catseye.org.conf: CacheEnable cannot occur within If section [root@sky ~]# The solution here is to lift

Re: [RFC] enhancement: mod_cache bypass

2014-08-23 Thread Graham Leggett
On 23 Aug 2014, at 03:50, Mark Montague m...@catseye.org wrote: I've attached a proof-of-concept patch against httpd 2.4.10 that allows mod_cache to be bypassed under conditions specified in the conf files. It adds an optional fourth argument to the CacheEnable directive: CacheEnable

Re: [RFC] enhancement: mod_cache bypass

2014-08-23 Thread Mark Montague
On 2014-08-23 5:19, Graham Leggett wrote: On 23 Aug 2014, at 03:50, Mark Montague m...@catseye.org mailto:m...@catseye.org wrote: I've attached a proof-of-concept patch against httpd 2.4.10 that allows mod_cache to be bypassed under conditions specified in the conf files. Does this not

Re: [RFC] enhancement: mod_cache bypass

2014-08-23 Thread Graham Leggett
On 23 Aug 2014, at 3:40 PM, Mark Montague m...@catseye.org wrote: Does this not duplicate the functionality of the If directives? No, not in this case: If -z %{req:Cookie} CacheEnable disk / /If [root@sky ~]# httpd -t AH00526: Syntax error on line 148 of

Re: [RFC] enhancement: mod_cache bypass

2014-08-23 Thread Mark Montague
On 2014-08-23 12:36, Graham Leggett wrote: On 23 Aug 2014, at 3:40 PM, Mark Montague m...@catseye.org wrote: AH00526: Syntax error on line 148 of /etc/httpd/conf/dev.catseye.org.conf: CacheEnable cannot occur within If section The solution here is to lift the restriction above. Having a

Re: [RFC] enhancement: mod_cache bypass

2014-08-23 Thread Mark Montague
On 2014-08-23 17:43, Mark Montague wrote: - Back-end sets response header Cache-Control: max-age=0, s-maxage=14400 so that mod_cache caches the response, but ISP caches and browser caches do not. (mod_cache removes s-maxage and does not pass it upstream). mod_cache shouldn’t remove any

Re: [RFC] enhancement: mod_cache bypass

2014-08-23 Thread Tim Bannister
On 23 August 2014 14:40:36 GMT+01:00, Mark Montague m...@catseye.org wrote: On 2014-08-23 5:19, Graham Leggett wrote: On 23 Aug 2014, at 03:50, Mark Montague m...@catseye.org mailto:m...@catseye.org wrote: I've attached a proof-of-concept patch against httpd 2.4.10 that allows mod_cache to

[RFC] enhancement: mod_cache bypass

2014-08-22 Thread Mark Montague
I've attached a proof-of-concept patch against httpd 2.4.10 that allows mod_cache to be bypassed under conditions specified in the conf files. It adds an optional fourth argument to the CacheEnable directive: CacheEnable cache_type [url-string] [expr=expression] If the expression is present,