Peter Wang wrote:
Henrik Nordstrom <henrik@xxxxxxxxxxxxxxxxxxx> writes:
Or if the parameters truly are crap and not needed for other purposes
than logging then remove them using an url rewriter.
These parameters can only be ignored while lookup squid cache objects,
but need keep un-changed in other cases, for example: logging,
show in browser Location bar, etc.
I see there is url_rewrite_program directive in squid 3.0 manual, not
very sure if this helps for my example, in which urls only need be
normalized while lookup cache objects.
No, the re-writer in 2.5, 2.6, 3.0 changes the actual URI requested form
web server.
What you need is 2.7 with store_url rewriter as Adrian said. It has been
created exactly for the type of usage you are putting squid to.
Amos
On mån, 2008-08-04 at 12:17 +0800, Adrian Chadd wrote:
Squid-2.7 can with store_url_rewrite .
Adrian
2008/8/4 Peter Wang <ptr.wang@xxxxxxxxx>:
Hi, all. I plan to use squid as reverse proxy before apache, and cache
the dynamic pages. But the problem i encounter is: the url of the
dynamic page is variant for the same request. for example:
http://mysite/cgi?w=abc
http://mysite/cgi?w=abc&pg=1
http://mysite/cgi?w=abc&pg=1&stats=from.index
..
three urls above throw out the same content, `stats` parameter only use
for statistics, and `pg` parameter can omit for the first page, and the
order these parameter occurs will be variant too.
so can squid match cache base on partial url, for example:
http://mysite/cgi?w=abc&pg=1 on above case.
any advice for it? thanks.
--
Please use Squid 2.7.STABLE3 or 3.0.STABLE8