RE: Processing mod_cache after mod_rewrite

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

 



Hi Eric,

Thanks for the insight. Do you mean that I should set it using SetEnvIf, or did you have something else in mind?

Regards,
Karim
________________________________________
From: Eric Covener [covener@xxxxxxxxx]
Sent: Wednesday, January 14, 2009 16:00
To: users@xxxxxxxxxxxxxxxx
Subject: Re:  Processing mod_cache after mod_rewrite

On Wed, Jan 14, 2009 at 7:41 AM, Karim Zaki <Karim.Zaki@xxxxxxxxxx> wrote:
> All,
>
> I need to have mod_cache process requests after mod_rewrite is done with them. The reason I need this is that CacheEnable only accepts a path and will cache everything under that path, while I need to cache based on more granular criteria...so I need mod_rewrite to look at the request and modify it, and then mod_cache to see the modified URI and act accordingly. mod_cache should not cache any request that's been modified by mod_rewrite, since it would no longer fall under the cacheable path. However, what happens is that mod_rewrite modifies the URI, but mod_cache still sees the original URI.
>
> I googled and found  two old threads from 2005 and 2007 discussing mod_cache being a "quick" handler and citing this as the reason for this behavior. Is there any way around it?


The next 2.2.x release will allow you to do E=no-cache:1 to prevent a
response from being saved by mod_cache.

http://httpd.apache.org/docs/2.3/env.html

--
Eric Covener
covener@xxxxxxxxx

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux