MyBB Internal: One or more warnings occured. Please contact your administrator for assistance.
WebPagetest Forums - etags, godaddy & mod_pagespeed

WebPagetest Forums

Full Version: etags, godaddy & mod_pagespeed
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
i've now got all the "A's" i'm going to get (i'm not really worried about the CDN atm).

http://www.webpagetest.org/result/110623...imization/

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
</IfModule>
<FilesMatch "\.(jpeg|jpg|gif|ico|css|js|png)$">
Header unset Etag
Header set Cache-control "max-age=2592000"
</FilesMatch>
<FilesMatch "\.(html|htm)$">
Header unset Etag
Header set Cache-control "max-age=600"
Header unset Last-Modified
</FilesMatch>

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?
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.
Reference URL's