The way GatorCache works now, every child site would have to have it’s own configuration. However, you’d want to install it on the main site and network activate it, rather than installing it on every child site. As far as the htaccess or http caching, it should work if you have a sub-directory install. Place the recommended rules in the main document root and it should pickup the child sites as well. For a subdomain install, you’d probably have to modify the recommended rules, since they check the host name.
I have a subdomain install, and I guess there in lies the problem, as I would have no idea how to modify the recommended rules. If I activate it on each site instead of network wide, would I just copy the rules for each site to the .htaccess?
Actually for the subdomain install, you’d just use the recommended rules from the main site. However, you’d have to modify the lines that begin with “RewriteCond %{HTTP_HOST}” to include all the host names. I just released an update for the plugin today, however, in the next update, within about a week, I’ll set it to automatically generate these rules for a multisite subdomain install.
I got the update this morning, and what I’ve done for the time being is network activated it and then added this code to the .htaccess:
## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType text/x-javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 1 month"
</IfModule>
## EXPIRES CACHING ##
My Google Pagespeed score jumped from 75 to 86 on my child site. My parent site is still in the 70’s, but I think that has to do with the theme than caching.