Re: [squid-users] Using rewrite to optimize the squid-cache HIT rate

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Tue, 27 Apr 2010 00:17:02 +1200

Georg Höllrigl wrote:
> Am 24.04.2010 03:36, schrieb Amos Jeffries:
>
>> URL re-writing only alters the URL, not the other related HTTP headers.
>> This can cause problems and is avoidable in most situations.
>
> In short: Squid uses only the headers to determine what to cache and
> rewriting the URLs won't help improving the hit rates?

For the old url_rewrite_* interface that is pretty much the case.

The storeur_rewrite_* interface does change the URL which determines
whether two pages are cached/fetched from the same slot.

Just be aware it also makes the URL fetched possibly disagree with any
URLs in the page body or Location: headers, cookies etc. which brings
browser security features, XSS and forwarding loops into the picture of
things to be careful of.

Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE9 or 3.1.1
Received on Mon Apr 26 2010 - 12:17:09 MDT

This archive was generated by hypermail 2.2.0 : Mon Apr 26 2010 - 12:00:06 MDT