httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Hodder <...@limepepper.co.uk>
Subject [users@httpd] mod_rewrite and mod_cache
Date Tue, 11 Jul 2006 18:44:44 GMT
Hi,

I have an httpd config with a rewrite rule with a proxy;
RewriteRule   ^/path1/(.*) http://localhost:8080/path2$1 [P]

and a disk cache like so;
CacheRoot /tmp/cache
CacheSize 32768
CacheEnable disk /

Now my index page "index.html" gets cached, but nothing that is handled 
by the rewrite rule below path1 or path2.

Is there any way around this? My initial though was that mod_cache would 
write files, that because of the mod_rewrite rule would not be found. 
But at the moment I can't even get it to write a cache file.

This is my response header from a file that is NOT cached, which I feel 
should be;

Date: Tue, 11 Jul 2006 18:39:06 GMT
Server: Apache/2.0.46 (Red Hat)
Last-Modified: Thu, 15 Sep 2005 11:41:54 GMT
Content-Length: 134
Content-Type: text/html; charset=UTF-8
Etag: "2805b-86-f6b20480"
Accept-Ranges: bytes
Connection: close

200 OK

(the etag is always the same for this file)

Cheers,

Tom H






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


Mime
View raw message