Forum Moderators: phranque
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