httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Plüm, Rüdiger, VF EITO <>
Subject Re: mod_cache+mod_rewrite behaviour
Date Fri, 19 Jan 2007 10:11:35 GMT

> -----Ursprüngliche Nachricht-----
> Von: Fredrik Widlund 
> Gesendet: Freitag, 19. Januar 2007 10:23
> An:
> Betreff: mod_cache+mod_rewrite behaviour
> I'm trying to get mod_cache to ignore the query_string part of the
> request, since our customers use "clicktags" in references to static
> banners. I need to cache these request to improve performance.
> My idea was to "RewriteRule .* %{REQUEST_URI}?", however I 
> have learned
> that mod_cache is run as a "quick_handler". However the actual
> cache_create_entity() call run _after_ the url being rewritten,
> resulting in the behaviour below (some debug calls have been added to
> mod_cache). One can see that create_select use the unrewritten request
> "", and create_select the rewritten
> "". This clearly makes mod_cache and
> mod_rewrite incompatible.

This is a known issue and fixed on trunk and proposed for backport to 2.2.x.
Please have a look at PR40805 (
You will find references to a patch there.
The fix is to use the *unmodified* URL / query string consistently.



View raw message