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) Reduce page loading time of website.

2) Improve user experience as page loads very quickly then before.

3) Decrease total data-size of page.

4) Have functionality to disable Etags which can have negative impacts on performance.

5) Along with expires headers plugin provide gzip compression which will help to speed-up your website by compressing the page output.

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


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.


To use this plugin do the following:

1) Firstly activate Plugin.

2) Check « Enable Expires Headers » checkbox to enable plugin working.

3) Check Files type you want to have expires headers and also add respective expires days for type using input box.

4) Once you hit « save » button all options you selected in 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?


Does this plugin help in gzip compression of output html?


Can we add custom file types for adding expires headers?

No , But Presently we added wide range of files type which generally needed. We are working on pro-version of plugin which cover this functionality. Please check here for more info.


16 genièr 2020
don't use this if your using most caching options will break your website code took me hours to find this conflict I originally thought it was the cache but then I learned it was not as I tried it with w3 total cache and the a2 version as well as wp rocket and a few others the same problem persisted until I removed just this plugin I am able to get the same results by adding a few lines of code to my .htaccess anyway
3 julhet 2019
After trying several other plugins this plugins really works for me and it made my website load faster then never before. Thanks!
Read all 5 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.