Current time: 09-17-2019, 02:18 AM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
etags, godaddy & mod_pagespeed
06-23-2011, 12:32 PM
Post: #1
Question etags, godaddy & mod_pagespeed
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?
Find all posts by this user
Quote this message in a reply
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.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)