• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer

Tips and Tricks HQ

  • Home
  • Blog
  • Projects
    • All Projects
    • Simple WP Shopping Cart
    • WP Express Checkout Plugin
    • WP Download Monitor
    • WP Security and Firewall Plugin
    • WP eStore Plugin
    • WP Affiliate Platform
    • WP eMember
    • WP Lightbox Ultimate
    • WP Photo Seller
  • Products
    • All Products
    • Checkout
  • Support
    • Support Portal
    • Customer Only Forum
    • WP eStore Documentation
    • WP Affiliate Software Documentation
    • WP eMember Documentation
  • Contact

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

You are here: Home / Wordpress / Wordpress Plugin / WP Far Future Expiration Plugin – Easily Add Far Future Expiration to Your Static Files

Last updated: July 12, 2018





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

Specification
App Category
WordPress Plugin
Software Name
WP Far Future Expiration
Version
1.4
Date Modified
2018-07-12
Operating System
WordPress 4.9
Description
Allows you to add Far Future Expiration to Your Static Files automatically
File Format
application/zip
Download

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

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

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.

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.

Related Posts

  • How to Add Far Future Expires Headers to Your WordPress Site
  • WordPress Plugins to Speed Up Your WordPress Site
  • Affiliate Link Manager/Cloaker Plugin
  • WP Proper PHP Include Plugin

Wordpress Plugin plugin,  Site Optimization Tips,  Site Speed,  Wordpress

Reader Interactions

Comments (19 responses)

  1. admin says:
    May 15, 2018 at 9:10 pm

    It doesn’t store or save any IP address or personal info. It is GDPR compliant.

  2. Jay says:
    May 15, 2018 at 4:50 pm

    Hi,
    It doesn’t seem that any personal information or IP addresses are being saved, however, could you please confirmt whether this plugin is GDPR compliant?
    Thanks!
    Jay

  3. Vinay says:
    October 18, 2017 at 1:09 pm

    I Thought I cant Configure htaccess file but your post realy helps me. Thanks For The Amazing Information

  4. admin says:
    December 10, 2014 at 7:32 pm

    @Joy, it only breaks when you enable a feature in the far future expiry plugin or it breaks even without this plugin? What kind of mobile device are you using for testing?

  5. joy says:
    December 10, 2014 at 7:56 am

    i really love your plugin, it works well and gives me 100% in page speed insights in google… however when i view my site in mobile it totally breaks… all are just letters and symbols.. can you help me?

  6. admin says:
    April 16, 2014 at 12:07 am

    @Harry, You can’t set expiry date of files hosted on an external server. Those external scripts will likely have the expiry date set by the server where it is hosted.

  7. Harry says:
    April 15, 2014 at 6:41 pm

    Hi, thanks for this. Most of the Yslow punishment always comes from external scripts, especially Google stuff (analytics, maps, G+ etc. Thanks Google…).

    Is there any way to fix expiration dates from files from external servers? I know we can’t change these files, but can we tell browsers not to fetch new ones?

    Cheers!

  8. admin says:
    February 27, 2014 at 7:48 pm

    @James, I will try to add it to the WP repository.

  9. James Revillini says:
    February 27, 2014 at 3:51 pm

    Any plans to move this to the WP repo for plugins? It’s a great tool but this makes large-scale deployment just a tad more time-consuming. I also want to make sure I’ll always have the latest. Thanks!

  10. admin says:
    February 10, 2014 at 8:11 pm

    @Vincent, yeah sure I will look into it.

  11. Vincent Morel says:
    February 10, 2014 at 10:55 am

    Great plugin and thanks for the february update. Maybe you could add the possibility to cache font file, they are pretty heavy sometimes… Maybe a combo like “eot,ttf,woff” and another for “svg”… ?
    Thanks!

  12. admin says:
    October 15, 2013 at 6:40 pm

    @Bob, If you apply frequent CSS or JS tweaks to the site without changing the name of the script files then you probably don’t want to use far future expiry header on them. If you make changes to the files then empty the cache then it will be all good for new visitors but old visitors who already have a cached copy of the static file (which is not expired) will continue to see the old file (Thats basically what you are telling the browser to do by specifying far future expiry). If you have made a lot of changes to a CSS or JS file then the technique is to change the name of the script so it becomes a new static resource.

  13. Bob says:
    October 15, 2013 at 4:12 pm

    In what kinds of cases would one NOT want to select css, js, and flash? I’m asking because they’re de-selected by default.

    If I enable them, and then make changes to a css or js file, I assume I’d need to empty all the caches (via W3 Total Cache), and then the FFE plugin would reset the expires period. Is this correct?

    Thanks!

  14. admin says:
    September 30, 2013 at 10:48 pm

    @Bob, There should be no conflict between the W3 Total Cache plugin and this one.

  15. Bob says:
    September 30, 2013 at 10:07 pm

    Does this plugin replicate any of the functionality of W3 Total Cache, or are there any potential conflicts? For example, one of the settings in Browser Cache of W3TC is ‘Set Expires Header’. Does that have any bearing on the use of your plugin?

    Thanks!

  16. admin says:
    September 7, 2013 at 7:56 pm

    @Joachim, How long did you use for the expiry value?

  17. Joachim says:
    September 7, 2013 at 4:57 am

    Hi

    I tried installing this, set it up and got “Your .htaccess file was successfully modified”

    However, when re-testing the site at pingdom, it doesn’t seem like the expiry date has been changed (Still get told to set a long expiry)

    Ideas?

  18. admin says:
    August 3, 2013 at 9:46 pm

    @Michael, Thank you for pointing that out. I have fixed this bug now. Please download v1.1 from this page and use it (the bug is fixed in the new version).

  19. Michael says:
    August 3, 2013 at 10:52 am

    Hi!

    Cool Plugin! Thanks for providing it!

    But I think there is a little bug:
    In the Administration the Plugin asks for the Time für the Expiration in Days.

    If I look at the entry in the .htaccess it is “hours” (in my Example I had inputed “60 Days” in the Plugin Adminarea):
    ExpiresDefault “access plus 60 hours”

    I changed that to
    ExpiresDefault “access plus 60 days”

    Michael

Leave a Reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Featured & Popular Articles

Video Answers to Top WordPress QuestionsWordPress Optimization Tips and Tricks for Better Performance and SpeedEssential WordPress Security Tips - Is Your Blog Protected?WordPress Simple PayPal Shopping Cart PluginTop 15 Search Engine Optimization (SEO) Techniques I Forget to DoList of the Best and Must Use WordPress PluginsHow do I Start a Blog and Make Money Online?Good Domain Name Picking Tips for Your Blog SetupFind Out Which WordPress Web Hosting Company Offers the Cheapest and Reliable Web Hosting Solution

Featured WordPress Plugins

wordpress estore plugin
wordpress membership plugin
WP Express Checkout Plugin
WordPress Lightbox Ultimate Plugin
WordPress photo seller plugin
wordpress affiliate plugin

Recent Posts

  • Accept Donations via PayPal from Your WordPress Site Easil [...]
  • Buy Now Button Graphics for eCommerce Websites [...]
  • Subscription Button Graphics for eCommerce Websites [...]
  • Adding PayPal Payment Buttons to Your WordPress Sidebar Ea [...]
  • PayPal QR Codes [...]

Comment & Socialize

  • @Rodrigo Souza, Thank you f ...
    - admin
  • The example for 'slm_add_ed ...
    - Rodrigo Souza
  • @Ron, All the valid transac ...
    - admin
  • Hello, when people have sel ...
    - Ron
  • We have hte following featu ...
    - admin

Check out our solutions

View our WordPress plugin collection and start using them on your site.

Our WordPress Solutions

Footer

Company

  • About
  • Privacy Policy
  • Terms and Conditions
  • Affiliate Login

Top WordPress Plugins

  • Simple Shopping Cart
  • PayPal Donations
  • WP Express Checkout
  • WP eStore
  • WP eMember

Blogging Tips

  • How to Start a Blog
  • Selecting a Good Domain
  • Cheap WP Hosting
  • WP Video Tutorials
  • Simple SEO Tips

Search


Keep In Touch

Copyright © 2023 | Tips and Tricks HQ