Re: header modification : partially solved

2014-06-12 Thread geodni
> Besides using the old version of ATS, which is not supported, your > config acts slightly oddly. I think it might even be a bug (it > doesn’t run the rules in the order you’d expect, i.e. it matches the > second regex first). OK, I successfully ported ATS 4.2.x branch based on GIT 0c8d513 which

Re: header modification

2014-06-11 Thread Leif Hedstrom
On Jun 11, 2014, at 1:29 AM, geo...@free.fr wrote: >>> I want to keep objects like media (avi|jpg|mp3) for 7 days in cache while >>> telling the client "max-age=3d", keep office file for 3 >>> days in cache while telling the client 1 day (using ATS 4.1.2 TTL are in >>> seconds) >> >> I think

Re: header modification

2014-06-11 Thread Sudheer Vinukonda
On 6/11/14, 12:29 AM, "geo...@free.fr" wrote: >>> I want to keep objects like media (avi|jpg|mp3) for 7 days in cache >>>while telling the client "max-age=3d", keep office file for 3 >>>days in cache while telling the client 1 day (using ATS 4.1.2 TTL are >>>in seconds) >> >>I think you are ove

Re: header modification

2014-06-11 Thread geodni
>> I want to keep objects like media (avi|jpg|mp3) for 7 days in cache while >> telling the client "max-age=3d", keep office file for 3 >>days in cache while telling the client 1 day (using ATS 4.1.2 TTL are in >>seconds) > >I think you are overcomplicating things a bit though, use the protocol

Re: header modification

2014-06-10 Thread Leif Hedstrom
On Jun 10, 2014, at 10:14 AM, geo...@free.fr wrote: > > On Jun 10, 2014, at 3:18 AM, geo...@free.fr wrote: > >>> - what is the best place to modify header for a group of document type like >>> images, remap.config (regex_map+header_rewrite) or cache.config ? >> >> Best place? On the origin fo

Re: header modification

2014-06-10 Thread geodni
On Jun 10, 2014, at 3:18 AM, geo...@free.fr wrote: >> - what is the best place to modify header for a group of document type like >> images, remap.config (regex_map+header_rewrite) or cache.config ? > >Best place? On the origin for sure. If you for some reason can’t do that, >header_rewrite oug

Re: header modification

2014-06-10 Thread Leif Hedstrom
On Jun 10, 2014, at 3:18 AM, geo...@free.fr wrote: > - what is the best place to modify header for a group of document type like > images, remap.config (regex_map+header_rewrite) or cache.config ? Best place? On the origin for sure. If you for some reason can’t do that, header_rewrite ought to

Re: header modification

2014-06-10 Thread James Peach
On Jun 10, 2014, at 2:18 AM, geo...@free.fr wrote: > Hi all, > 3 questions : > - could a "regex_suffix" rule be added into future version of ATS, someone > can use it to match in one rule all kind of image like > "suffix_regex=(png|bmp|jpg|jpeg|gif)" instead of writing one line by suffix ? I th