Search squid archive

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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux