[squid-users] Re: How to ignore query terms for store key?

From: Henrik Nordström <henrik_at_henriknordstrom.net>
Date: Wed, 08 Sep 2010 10:23:13 +0200

tis 2010-09-07 klockan 18:59 -0700 skrev Guy Bashkansky:

> /usr/local/squid/bin/strip-query.pl
> #!/usr/local/bin/perl -Tw
> $| = 1; while(<>) { chomp; s/\?\S*//; print; } ### my strip query test

If you chomp the newline then you need to add it back when printing the
result.

Regards
Henrik
Received on Wed Sep 08 2010 - 08:23:19 MDT

This archive was generated by hypermail 2.2.0 : Wed Sep 08 2010 - 12:00:03 MDT