Far Future Expiry Header


This plugin offers a few lightweight features to speed up your WordPress site without much hassle.

Far Future Expiry

When the feature is enabled, this plugin will modify your .htaccess file by inserting code which will add expires headers for common static file types.

Expiry 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.

Gzip Compression

You can also enable Gzip compression on your site using this plugin. Gzip compression will speed up your WordPress site by compressing the page output and sending it to your visitors browser.

When enabled, the plugin will do gzip compression if the visitor’s browser can handle it.

This feature may conflict with a few other plugins. So disable this feature if you need to use a plugin which doesn’t work with gzip compression.


To use this plugin do the following:

1) Ensure that the “mod_expires” module is enabled from your host’s main configuration file

2) 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

3) Enable the “Far Future Expiration” checkbox

4) Set the number of days till expiry

5) 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.


  1. Upload the far-future-expiration.zip file from the Plugins -> Add New page in the WordPress administration panel.
  2. Activate the plugin through the “Plugins” menu in the WordPress administration panel.


Installation Instructions
  1. Upload the far-future-expiration.zip file from the Plugins -> Add New page in the WordPress administration panel.
  2. Activate the plugin through the “Plugins” menu in the WordPress administration panel.
Can I set a far future expiry header with this plugin?


Can I eanble gzip compression on my site using this plugin?



its ok.. but Some things break websites

So well it kinda works.. but then if you try to disable it without any Number in the DAYS box… the whole site goes down error 500 and ya..
Good thing is i finally figured out why my own codes i was trying to add didnt work…
this whole time i was using htaccess and not .htaccess …. So well it does work but be careful how you disable it and it could be my hsot but gzip prevents page from loading has well
overall works but could be Better noob proof and once u realise what u need to do sorry but this aint needed

Breaking my WP, be careful!

Once activated, the plugin sends my WP in 500, making it un-accessible.
Had to restore a previous backup and lost some data. Be careful!

Great simple tag header manager

excellent, very useful, tag manager. Very simple and reliable in use. Thank you to the developers for the wonderful free plugin. Totally recommended!

Huge BUG but here’s the fix

Login to your wordpress admin dashboard
Navigate to Settings > FarFutureExpiry

Here, make sure Enable Far Future Expiration is checked ON
Set # of days to 60
Check all of the boxes for the File Types to ON
Enable Gzip Compression

Now, you will save, and gtmetrix will still give you an error.

The reason is that when you look at your .htacess file
it says:

ExpiresDefault “access plus 1440 hours”

Change it to say:

ExpiresDefault “access plus 60 days”

Once you do this, gtmetrix will give you a good rating.

Read all 18 reviews

Contributors & Developers

“Far Future Expiry Header” is open source software. The following people have contributed to this plugin.




  • The far future expiry is written using days instead of hours so GT metrix can read it better.


  • Added a new feature to enable gzip compression on the site


  • Fixed a minor bug with the htacess rules.


  • First commit to wp repo