Re: [squid-users] url rewrite and cache, which URL should be cached?

From: Henrik Nordstrom <henrik@dont-contact.us>
Date: Wed, 10 Oct 2007 03:55:44 +0200

On tis, 2007-10-09 at 17:47 +0200, Sylvain Viart wrote:
> Hi,
>
> I use a redirector on an accel proxy config.
>
> url_rewrite_program /etc/squid/redirector.pl
> url_rewrite_children 15
> url_rewrite_concurrency 0
> url_rewrite_host_header off
>
>
> It seems, that the url used to store the requested url is the orginal
> url, not the rewrited on.

The cache is using the rewritten URL.

Sequence is approximately

* Request accepted
* http_access Access controls
* URL rewriting, replacing Squid's idea of the URL
* http_access2 Access controls
* Cache lookup
* Forwarding on cache miss
* http_reply_access Reply access controls

Because of this using "url_rewrite_host_header off" can be a very bad
thing as it makes the requested URL sent to the web server differ from
the cache URL, and can easily bite you..

Regards
Henrik

Received on Tue Oct 09 2007 - 19:55:49 MDT

This archive was generated by hypermail pre-2.1.9 : Thu Nov 01 2007 - 13:00:01 MDT