Eric,

That won't work in this environment since I have CacheIgnoreCacheControl set to 
on. You don't think it would be possible to follow the second approach?

Regards,
Karim

-----Original Message-----
From: Eric Covener [mailto:cove...@gmail.com]
Sent: Wednesday, December 24, 2008 3:31 PM
To: users@httpd.apache.org
Subject: Re: [us...@httpd] RE: Using mod_cache to cache URLs matching a regular 
expression

On Wed, Dec 24, 2008 at 8:02 AM, Karim Zaki <karim.z...@itworx.com> wrote:
> Hi Eric,
>
> The idea sounds good, but I can't seem to get it to work. I need to modify 
> the host header for example, to point the request to another vhost that has 
> no caching defined. However, mod_rewrite doesn't seem to allow for modifying 
> headers, and I can't change the URI. I can use SetEnvIf to set an environment 
> variable if the regular expression matches, but then how do I tell Apache not 
> to cache if a specific environment variable is set?

I was thinking more along the lines of setting Cache-Control: no-cache
or max-age=0 as opposed to making the request look like it fell
outside of the CacheEnable context


--
Eric Covener
cove...@gmail.com

---------------------------------------------------------------------
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-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org


---------------------------------------------------------------------
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-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to