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.
- Go to plugin settings page.
- Check Files type you want to have expires headers and also add respective expires days for type using input box and make sure you enable respective mime type of group of files to add expires headers for that mime type.
- Once you hit “submit” button all options you selected saved in database of website and accordingly .htaccess file will updated and add expires headers for respective selected files will be added.
- 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.
- Adding new file types for adding expires headers.
- Refresh cache periodically
- Unset Entity Tags
- HTTP(Gzip) compression
- Prevent Specific files from caching
- Removing version info from files