May 19, 2014

How To Specify A Vary: Accept-Encoding Header To Increase Page Speed For WordPress Blog

|
One way to increase the page speed is to specify a vary: accept-encoding header in your WordPress blog,

This is how to do it:

1. Log into your server account. (Bluehost, Hostgator, etc).

2.  Go to your .htaccess file.

For those who do not how to go to your .htaccess file, read this post

3. Paste the custom code below  onto your .htaccess file.

<IfModule mod_headers.c>
  <FilesMatch "\.(js|css|xml|gz)$">
    Header append Vary: Accept-Encoding
  </FilesMatch>
</IfModule>

4. Then click  Save Changes.

Here is another tip on how to increase your page speed.