Website Performance - Tip to improve your website performance score measured by YSlow

Website Performance - Tip to improve your website performance score measured by YSlow

Last Updated: 1/21/2015

Here is a quick tip to improve your website performance score (as measured by YSlow).

NOTE:  This adds an expires header to your static content, turns off the Etag headers and compresses files sent to the browser.
WARNING: This means that if you change one of these static elements, the end user might not see the new image for up to 30 days.  (FIX: Just rename the changed images to a new name so that it doesn't have the same name.

Add the following lines to your .htaccess file:

<FilesMatch "\.(ico|jpg|jpeg|png|gif|js|css|swf)$">
ExpiresActive on
ExpiresDefault "access plus 30 days"
Header unset ETag
FileETag None
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/javascript application/x-javascript  application/rss+xml application/atom_xml text/javascript
</Files>

Credit: This solution has been provided by Bob Peters of Cabinet Doors Depot

  • 2 Users Found This Useful
Was this answer helpful?

Related Articles

How to Reclaim Google Analytics Account

How to Reclaim Google Analytics AccountLast Updated: 1/21/2015 Contact Google:...