On 10/09/10 04:48, Guy Bashkansky wrote:
Amos, Matus,
Some websites embed in query terms arbitrary redundant information
which is irrelevant to content distribution, but prevents effective
caching by giving same object different URLs each time.
For such websites (recognized by regex ACLs), stri
Amos, Matus,
Some websites embed in query terms arbitrary redundant information
which is irrelevant to content distribution, but prevents effective
caching by giving same object different URLs each time.
For such websites (recognized by regex ACLs), stripping those
redundant cache-unfriendly quer
On 07.09.10 18:59, Guy Bashkansky wrote:
> Thanks, storeurl_rewrite in Squid 2.7 looks like the right solution.
>
> But when I try to use it to strip query, Squid does not respond:
>
> /usr/local/squid/etc/squid.conf
> storeurl_access allow all # just for the test, will narrow down later
>
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
Henr
Thanks, storeurl_rewrite in Squid 2.7 looks like the right solution.
But when I try to use it to strip query, Squid does not respond:
/usr/local/squid/etc/squid.conf
storeurl_access allow all # just for the test, will narrow down later
storeurl_rewrite_program /usr/local/squid/bin/strip-q
fre 2010-09-03 klockan 18:03 -0700 skrev Guy Bashkansky:
> Is there a way to ignore URI query terms when forming store keys?
> Maybe some rule or extension?
http://wiki.squid-cache.org/Features/StoreUrlRewrite
needs to be implemented for Squid-3 as well.. currently a Squid-2 only
feature.
Regard