httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "--[ UxBoD ]--" <>
Subject [users@httpd] Help with cache tuning
Date Thu, 03 Feb 2011 20:10:04 GMT
Hello all,

I have been trying to tune my Apache vhost config and hoping for some help to critique, flame
and slap me with a wet fish for being so silly. So this is my config so far:

<VirtualHost *:80>
    DocumentRoot "/www/"
    <Directory /www/>
        AllowOverride All

       <FilesMatch "\.(jp?g|gif|png|js|css|ico)$">
           Header unset Etag
           FileETag None
           Header set Cache-control "public, max-age=604800"

       ExpiresActive On

       ExpiresDefault "access plus 1 month"
       ExpiresByType text/html "access plus 30 minutes"
       ExpiresByType text/css "access plus 2 weeks"
       ExpiresByType text/javascript "access plus 2 weeks"
       ExpiresByType image/png "access plus 1 month"
       ExpiresByType image/gif "access plus 1 month"
       ExpiresByType image/jpg "access plus 1 month"



    AddOutputFilterByType DEFLATE text/html text/css text/xml application/x-javascript application/javascript

    # Deactivate compression for buggy browsers
    BrowserMatch ^Mozilla/4 gzip-only-text/html
    BrowserMatch ^Mozilla/4\.0[678] no-gzip
    BrowserMatch \bMSIE !no-gzip !gzip-only-text/html

    DeflateCompressionLevel 6

    # Set header information for proxies
    Header append Vary User-Agent

    ErrorLog "logs/"
    CustomLog "logs/" common

When I check with Chrome or Firefox I get messages about:

"The following cacheable resources have a short freshness lifetime"
"Consider adding a "Cache-Control: public" header to the following resources"

Yet I though from the above config I had added those.  I am using mod_deflate and mod_pagespeed
which appear to be doing quite a good job but I feel my lack of Apache core workings is really
letting performance down.

Any help from the experienced community would be very much appreciated by a n00b.
Thanks, Phil

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message