hottrout - 1:17 pm on Jul 31, 2012 (gmt 0)
I have two subdomains to my main site and have setup caching on certain files as follows:-
# Set up Expires and Cache Control headers
Header unset ETag
Header unset Last-Modified
# Default - Set Cache-Control header to expire everything 3 days from last access
Header set Cache-Control: "must-revalidate"
# Cache images for up to two weeks -- no forced revalidation (longer than 2 weeks is pointless)
# Infrequently updated -- expire after 48 hours
Header append Cache-Control "proxy-revalidate"
# Frequently-updated files, expire after 2 hour
Header set Cache-Control: "no-cache, must-revalidate"
# Preserve bandwidth for PHP enabled servers
php_value zlib.output_compression 16386
My problem seems to be that when I check my page speeds, gtmetrix.com reports that content like jpg or gif or css files from a subdomain of my main site does not have a cache validator.
My subdomains are simply setup as a folder under the root of the main site. I have also tried copying my htaccess into that folder to no avail.
Can someone suggest what I am missing or even if this is possible?