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 wrote: [root@sky ~]# httpd -t AH00526: Syntax error on line 148 of /etc/httpd/conf/dev.catseye.org.conf: CacheEnable cannot occur within section [root@sky ~]# The solution here is to lift the restriction abo

Re: [RFC] enhancement: mod_cache bypass

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

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 Mark Montague
On 2014-08-23 12:36, Graham Leggett wrote: On 23 Aug 2014, at 3:40 PM, Mark Montague wrote: AH00526: Syntax error on line 148 of /etc/httpd/conf/dev.catseye.org.conf: CacheEnable cannot occur within section The solution here is to lift the restriction above. Having a generic mechanism to

Re: [RFC] enhancement: mod_cache bypass

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

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 > 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 duplicate the funct

Re: [RFC] enhancement: mod_cache bypass

2014-08-23 Thread Graham Leggett
On 23 Aug 2014, at 03:50, Mark Montague 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 cache_type [url

[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,