Forum Moderators: phranque

Message Too Old, No Replies

Canīt get mod_cache working!

         

Markus Klaffke

12:29 pm on Oct 16, 2005 (gmt 0)

10+ Year Member



Hi, i am running Apache 2.0.54 on FreeBSD 5.4 on a very slow PC. I am just experimenting with mod_cache and mod_disk_cache, but i can īt get it running. Noting is cached.


DocumentRoot /www/live

mod_expire works well!


<IfModule mod_expires.c>
ExpiresActive On
### TEST TEST
ExpiresByType image/jpeg "access plus 14 days"
ExpiresByType image/gif "access plus 14 days"
ExpiresByType application/x-javascript "access plus 7 days"
ExpiresByType text/css "access plus 7 days"
ExpiresByType text/html "access plus 2 days"
month"
<Files ~ "\.html$">
Header append Cache-Control "no-cache, must-revalidate"
Header set Pragma "no-cache"
</Files>
</IfModule>

This is my last cache setup. I have changed the values alot but without result.


<IfModule mod_cache.c>
<IfModule mod_disk_cache.c>
CacheRoot "/var/cache/apache2"
CacheSize 50000
CacheEnable disk live/
CacheDirLevels 2
CacheDirLength 1
CacheDefaultExpire 86400
CacheIgnoreCacheControl On
CacheIgnoreHeaders Set-Cookie
CacheMaxExpire 86400
</IfModule>
</IfModule>

Maybe a single value is wrong, i donīt know. Any help is apreciated - thanks.

Markus