Very cool, thanks Hugo!

Jeff


On Mon, Mar 4, 2013 at 11:32 PM, Hugo Cisneiros (Eitch) <
[email protected]> wrote:

> On Tue, Mar 5, 2013 at 12:17 AM, Jeffrey Taylor <[email protected]> wrote:
>
>> In regards to this issue. I had a further question.
>>
>> Is it possible to only pass this rule specifically when certain(3) file
>> extensions are involved. I.e., Only when extentsions are .abc .abd .abe ?
>>
>
> Sure!
>
> sub vcl_fetch {
>   if (beresp.status == 404 && req.url ~ "\.ab(c|d|e)) {
>     set beresp.ttl = 1m;
>     error 200 "Not Found";
>   }
>
>   [...]
> }
>
> adding a regex to match the request url ending with .abc, .abd, .abe.
>
> --
> []'s
> Hugo
> www.devin.com.br
>
_______________________________________________
varnish-misc mailing list
[email protected]
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

Reply via email to