httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul J. Reder" <rede...@remulak.net>
Subject Re: mod_cache trouble
Date Tue, 27 Aug 2002 13:03:46 GMT
Are you using the most recent head build of 2.0? There was a
fix applied recently to the header handling for mod_disk_cache.

I am currently doing some work on the caching code, so I'll
look into this. Please let me know if you are on the latest
code.

Thanks,

Paul J. Reder

Ask Bjoern Hansen wrote:

> I am using the latest httpd from CVS.
> 
> I can't get mod_disk_cache to cache anything but 301's.
> 
> I suspect it's something related to the headers I (don't) send.
> 
> $ lwp-request -e -d -S http://nntp.x.perl.org/
> GET http://nntp.x.perl.org/ --> 200 OK
> Connection: close
> Date: Tue, 27 Aug 2002 11:34:58 GMT
> Via: 1.0 nntp.x.perl.org
> Server: Apache/1.3.26 (Unix) mod_perl/1.27
> Content-Length: 1896
> Content-Type: text/html; charset=ISO-8859-1
> 
> 
> My httpd.conf looks like the following,
> 
> LoadModule cache_module modules/mod_cache.so
> LoadModule disk_cache_module modules/mod_disk_cache.so
> 
> [...]
> 
> <VirtualHost *>
>   servername nntp.x.perl.org
>   serveralias nntp.perl.org
> 
>   CacheOn on
>   CacheRoot /home/web/front/cache/
>   CacheSize 50000
>   CacheDefaultExpire  43200
>   CacheEnable disk /
>   CacheDirLevels 5
>   CacheDirLength 3
> 
>   RewriteEngine On
>   RewriteCond  %{REQUEST_URI}    !^/js/
>   RewriteCond  %{REQUEST_URI}    !^/proxy-status
>   RewriteRule (.*) http://localhost:8222$1 [P]
> </VirtualHost>
> 
> [...]
> 
>  - ask
> 
> 


-- 
Paul J. Reder
-----------------------------------------------------------
"The strength of the Constitution lies entirely in the determination of each
citizen to defend it.  Only if every single citizen feels duty bound to do
his share in this defense are the constitutional rights secure."
-- Albert Einstein



Mime
View raw message