Caching images only

Kumar Shantanu shantanu at
Mon Nov 4 12:04:41 CET 2013

Hi Dridi,

Thanks for the quick response. Can I install this on my running instance 
of varnish or will I need to reinstall varnish with this module ?


On 11/04/2013 04:23 PM, Dridi Boukelmoune wrote:
> Hi,
> I maintain a module that might help solve your issue:
> If you have any question, please do not hesitate.
> Best Regards,
> Dridi
> On Mon, Nov 4, 2013 at 11:18 AM, Kumar Shantanu <shantanu at> wrote:
>> Hello everybody,
>> I am trying to cache all images for my website and it's working fine with
>> simple configuration as given below.
>> sub vcl_recv {
>>    if (req.url ~ "\.(png|gif|jpg|jpeg|bmp)$"){
>>          remove req.http.Cookie;
>>     }
>> It's caching image url which is simply ending with filename.jpeg, but this
>> can't cache if the url is bit complex like this
>> Any idea on how to achieve this. I tried using reqex to match url but failed
>> :(
>> Thanks
>> Shantanu
>> _______________________________________________
>> varnish-misc mailing list
>> varnish-misc at






Technology Blueprint Ltd
23 Clemens Street
Royal Leamington Spa
Warwickshire CV31 2DW

T: 0845 004 7142 (Ext. 5001)
E: shantanu at

The contents of this email are confidential and may be privileged, and 
are intended only for the use of the person or company named herein. Any 
views or opinions presented are solely those of the author and do not 
necessarily represent those of Technology Blueprint Limited.
If you are not the intended recipient of this email or a person 
responsible for delivering it to the intended recipient, you are hereby 
notified that any distribution, copying or dissemination of the 
information herein is strictly prohibited

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: redhat.jpg
Type: image/jpeg
Size: 2033 bytes
Desc: not available
URL: <>

More information about the varnish-misc mailing list