WebPagetest Forums
etags, godaddy & mod_pagespeed - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: Web Performance (/forumdisplay.php?fid=3)
+--- Forum: Optimization Discussions (/forumdisplay.php?fid=5)
+--- Thread: etags, godaddy & mod_pagespeed (/showthread.php?tid=869)

etags, godaddy & mod_pagespeed - rip97000 - 06-23-2011 12:32 PM

i've now got all the "A's" i'm going to get (i'm not really worried about the CDN atm).


i've also implemented mod_pagespeed (which wasn't easy with godaddy as a server). now the problem is that etags are removed for my html files, but not for any other files on my site. here is my htacess file for review:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^matthewsgalleries\.com [nc]
RewriteRule ^(.*)$ http://www.matthewsgalleries.com/$1 [R=301,L]
ErrorDocument 404 /assests/404.html
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/javascript text/css application/x-javascript
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4.0[678] no-gzip
BrowserMatch bMSIEs(7|8) !no-gzip !gzip-only-text/html
<IfModule pagespeed_module>
ModPagespeed on
ModPagespeedRewriteLevel PassThrough
ModPagespeedEnableFilters collapse_whitespace,elide_attributes,extend_cache
<FilesMatch "\.(jpeg|jpg|gif|ico|css|js|png)$">
Header unset Etag
Header set Cache-control "max-age=2592000"
<FilesMatch "\.(html|htm)$">
Header unset Etag
Header set Cache-control "max-age=600"
Header unset Last-Modified

i tried moving the etags out of both of the filesmatch and put it right after the </ifModule>, but that caused a server error.

i'm really at a loss here! any help?

RE: etags, godaddy & mod_pagespeed - Bushido - 06-23-2011 04:53 PM

Header unset ETag
FileETag None

Those, added to your htaccess file, will work on godaddy shared. I've never set up mod_pagespeed on Godaddy so I don't know if it conflicts but the above will work, no need of filematch, FileEtag none is applied to images.