Hi,

Thanks for the information. Tried the patch and it mends it the
behaviour, however it doesn't really help me of course since I indeed am
trying to rewrite the url before it's cached.

What are the chances of getting a patch that adds a
"CacheIgnoreQueryString" option accepted? Who/where do I ask this?

Kind regards,
Fredrik Widlund

Plüm wrote:
>> -----Ursprüngliche Nachricht-----
>> Von: Fredrik Widlund 
>> Gesendet: Freitag, 19. Januar 2007 10:23
>> An: [email protected]
>> 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
>> "http://1.2.3.4:80/index.html?ref=x";, and create_select the rewritten
>> "http://1.2.3.4:80/index.html?";. 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 
> (http://issues.apache.org/bugzilla/show_bug.cgi?id=40805)
> You will find references to a patch there.
> The fix is to use the *unmodified* URL / query string consistently.
>
> Regards
>
> Rüdiger
>
>   

Reply via email to