Expires headers are guide to browser from website that how long it can keep resources in it’s cache. Based on requirement of updating of any type of resources we can give different expiry time for resources. So Expire headers determine for browser that it needs to fetch new version of resources or use cached version.
- Make sure that the “mod_expires” module is enabled on your website hosting server.
- It is necessary to have read/write permission of .htaccess file to plugin. If not then update file permissions accordingly.
- Deactivate and uninstall any other expires headers plugin you may be using.
- 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/).
- Activate the plugin through the “Plugins” menu in the WordPress administration panel.
To use this plugin do the following:
- Firstly activate Plugin.
- Check “Enable Adding Expires Headers” checkbox to enable plugin working.
- Check Files type you want to have expires headers and also add respective expires days for type using input box.
- 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.
- Reduce page loading time of website.
- No. of resource request are reduced.
- Decrease total data-size of page.
- Improve user experience as page loads very quickly then before.
- Along with expires headers plugin provide gzip compression which will help to speed-up your website by compressing the page output.
- Larger band of predefined file types are covered so it will increase bandwidth of files which can have expiry headers.