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).
Download the Plugin
Download the WP Far Future Expiration 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
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.
Enabling Gzip Compression
You can optionally enable gzip compression on your site using this plugin.
Gzip compression speeds up your site by compressing the page output and sending the compressed date to your visitors browser. When enabled, the plugin will do gzip compression if the visitor’s browser can handle it.
Works with the latest version of WordPress.
Requires WordPress 3.5 or higher.
Check out our WordPress plugins page for more cool WordPress plugins.