Add Expires Headers


Plugin will improve your website loading speed by caching various types of static files in browser of User. It is light weight plugin but its impact on page loading speed in very crucial and easy noticeable.


1) Serves static assets with an efficient cache policy.

2) Reduces page loading time of website.

3) Improves user experience as page loads very quickly than before.

4) Decreases total data-size of page.

5) Larger band of predefined file types are covered so it will increase bandwidth of files which can have expiry headers.

Pro Features

1) Ability to add expires headers to External Resources

2) Adding new file types for adding expires headers

3) Refresh cache periodically

4) Unset Entity Tags

5) HTTP(Gzip) compression

6) Prevent Specific files from caching

7) Removing version info from files


For Plugin documentation, please refer our plugin website.


1) Make sure that the “mod_expires” module is enabled on your website hosting server.

2) It is necessary to have read/write permission of .htaccess file to plugin. If not then update file permissions accordingly.

3) check status page of plugin for more info.


To use this plugin do the following:

1) Firstly activate Plugin.

2) Go to plugin settings page.

3) Check Files types you want to have expires headers and also add respective expires days for mime type using input box and make sure you enable respective mime type,for which group of files you want to add expires headers.

4) Once you hit “submit” button all options you selected in settings page saved database of website and accordingly .htaccess file will updated and add expires headers for respective selected files.


  • Plugin Settings


1) Deactivate and uninstall any other expires headers plugin you may be using.

2) Login as an administrator to your WordPress Admin account. Using the “Add New” menu option under the “Plugins” section of the navigation, you can either search for: “add expires headers” or if you’ve downloaded the plugin already, click the “Upload” link, find the .zip file you download and then click “Install Now”. Or you can unzip and FTP upload the plugin to your plugins directory (wp-content/plugins/).

3) Activate the plugin through the “Plugins” menu in the WordPress administration panel.


Does this plugin have custom expiry time for different resources?

Yes base on Mime Type you can have different expiry time.

Does this plugin help in gzip compression of output html?

No, But if you upgrade to pro version you will have facility for same.

Can we add custom file types for adding expires headers?

No, But with upgrade you can have facility to add custom file types.


December 1, 2020
Plugin helped to increase my structure and performance score by serving static assets with an effective cache policy. Do add javascript and css minification functionalities in futute updates so we need not to use more plugin for same. Thanks.
August 6, 2020
Thanks for good plugin. With some checkboxes selection and submission and i have expires headers for most of resources which where lacking before. (Just one suggestion make all checkboxes select using one button or auto selected at start will be better option.)
July 8, 2020
I initially bought the premium version and it wasn’t working. I emailed AEH and requested a refund. I showed them my results using the plugins and they responded and asked if I could give them access to my site. I created a user for them and they found out what was causing my issue. It ended up being a plugin (Autoptimize) that was causing my issue. The rep went and found a replacement plugin to substitute Autoptimize and now my GTMetrix scores are great (100/100). I couldn’t be happier with this plugin and support.
July 3, 2020
I have been using this plugin from intial release and it is very helpful so far increasing speed and score of my website.
Read all 20 reviews

Contributors & Developers

“Add Expires Headers” is open source software. The following people have contributed to this plugin.


Translate “Add Expires Headers” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.



Initial Version of Plugin


Added Activation and Deactivation hooks.
Added Settings link on plugins page.


Adding functionality to disable Etags.


Basic feature for adding expires headers for pre define file types
Ability to have Pro-Version


Adding functionality for caching and adding expires headers to External resources
Added Plugin compatibility status page
Added more file formats


Upgrading facility to serve static assets with an efficient cache policy.
Increasing default values for plugin cache life for various types of files.