Thursday, August 22, 2013

Tips and Tricks Latest Post

Tips and Tricks Latest Post


WP Far Future Expiration Plugin – Easily Add Far Future Expiration to Your Static Files

Posted: 06 Jul 2013 07:16 PM PDT

This plugin will allow you to easily add a “far future expiration” date for various static file types on your WordPress powered site to improve page load time (site speed).

Adding far future expiry header to your static resources (images, js, css) can improve the site speed. If you are using a caching plugin like W3 Total Cache then that plugin can do this for you too.  However, I don’t use a caching plugin on all my sites (caching plugins are really good but for some sites/projects they add more hassle than its worth). This little plugin comes in handy in situations like that.

How The Plugin Works

This plugin will modify your .htaccess file by inserting code which will add expires headers for common static file types (this will tell the browser to cache those files).

Expires header specifies a time far enough in the future so that browsers won’t try to re-fetch images, CSS, javascript etc files that haven’t changed (this reduces the number of HTTP requests) and hence the performance improvement on subsequent page views.

Download the Plugin

Installing the Far Future Expiry Plugin

Below are the steps for setting up the plugin.

  • Go to the Add New plugins screen in your WordPress admin area
  • Click the upload tab
  • Browse for the plugin file (far-future-expiration.zip)
  • Click Install Now and then activate the plugin

Usage Instruction

To use this plugin do the following:

  • Ensure that the “mod_expires” module is enabled from your host’s main configuration file
  • Check with your hosting provider or if you have access to the httpd.conf file the following line should be uncommented:
    LoadModule expires_module modules/mod_expires.so
  • Enable the “Far Future Expiration” checkbox
  • Set the number of days till expiry
  • Select the file types you wish to enable the “far future expiration” feature for by using the checkboxes in the “File Types” section

NOTE: When you use this plugin, the file selected file types are cached in the browser until they expire. Therefore you should not use this on files that change frequently.

wordpress far future expiration plugin settings

Plugin Compatibility

Works with the latest version of WordPress.

Plugin Requirement

Requires WordPress 3.5 or higher.

Check out our WordPress plugins page for more cool WordPress plugins.

No comments:

Post a Comment

//SEO SCRIPT POWERED BY www.alltechbuzz.in