Re: [squid-users] Problems with Cacheobject

From: Henrik Nordstrom <henrik@dont-contact.us>
Date: Tue, 31 Jul 2007 19:48:11 +0200

On tis, 2007-07-31 at 14:29 +0200, Enrico Popp wrote:

> I have an problem. In my company we use 2different urls. I.e.
> www.bla.org and www.bli.org. But after the urlstring the querystrings
> are the same. Squid saved an object twice, if it is from www.bli.org and
> www.bla.org with the same querystring. I'm sure this could be avoided.
> My idea is to rewrite one url into another. I have read the squidGuard
> help, but i can't find out any solution. Can squidGuard do this? Or any
> other Idea?

A two-line perl program would do just fine.

#!/usr/bin/perl -p
BEGIN {$|=1;}
s%^http://www.bli.org%http://www.bla.org% && next

Regards
Henrik

Received on Tue Jul 31 2007 - 11:48:25 MDT

This archive was generated by hypermail pre-2.1.9 : Wed Aug 01 2007 - 12:00:04 MDT