Re: [squid-users] Squid 2.6 Question: Can I run a Perl script before/after checking cache for image

From: Chris Robertson <crobertson@dont-contact.us>
Date: Mon, 01 Oct 2007 14:53:53 -0800

Ethan Whitt wrote:
> Squid Gurus,
>
> I am not sure if Squid is able to do this, but I thought this would be
> the right place to ask. Here is my setup
>
> Clients: Windows and Mac PC's with proxy setting to 3128
> Squid Box: v2.6, not in forwarding path between users and Internet
>
> Is there a way I can have Squid run a Perl script everytime a .JPG is
> requested before/after checking the cache? I would like to add some
> logic to manipulate the image if it matches a certain criteria within
> the Perl script. I have seen ways of doing this with IPtables when the
> Squid box is in the forwarding path. Is this possible otherwise?
>
> Thanks!
>
> Ethan
>

Short answer, yes.

Long answer (and a potentially amusing read),
http://www.ex-parrot.com/~pete/upside-down-ternet.html

Chris
Received on Mon Oct 01 2007 - 16:54:12 MDT

This archive was generated by hypermail pre-2.1.9 : Thu Nov 01 2007 - 13:00:00 MDT