Use of Expire Header
Help to reduce HTTP request from server by caching files reduce server load and improve page speed it tells user to reuse files when open website again and again.
How to Add Expire Header
You need to edit htaccess files which can be found in website root of directory before editing make sure download htaccess file by doing so if you face error or website down by saying like “Internal Server Error“.
After opening .htaccess file paste below code into file.
You could also use time limit like below:
ExpiresDefault “access plus 2 hours”
ExpiresDefault “access plus 2 months”
A2592000 means 1 month in the future (60*60*24*30=2592000)
Remove ETags From Header
ETag (entity tag) is an HTTP response header returned by an HTTP/1.1 compliant web server used to determine change in content at a given URL. When a new HTTP response contains the same ETag as an older HTTP response, the contents are considered to be the same without further downloading.
To remove ETags from website use below code and paste into htaccess file.
Header unset ETag FileETag none
ETags were added to provide a mechanism for validating entities that is more flexible than the last-modified date but If you’re not taking advantage of the flexible validation model that ETags provide, it’s better to just remove the ETag altogether. Removing the ETag reduces the size of the HTTP headers in the response and subsequent requests thus improving site performance.
These are htaccess tweaks helps you to achieve best result in page speed and yslow grade. check our many theme which are optimized for speed.