etags, godaddy & mod_pagespeed
|
06-23-2011, 12:32 PM
Post: #1
|
|||
|
|||
![]()
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? |
|||
06-23-2011, 04:53 PM
(This post was last modified: 06-23-2011 04:54 PM by Bushido.)
Post: #2
|
|||
|
|||
RE: etags, godaddy & mod_pagespeed
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. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)