What is browser caching and expires headers?
The point of using browser caching and expiry headers is to reduce the number of HTTP requests, which improves the performance for your returning visitors.
With Expires headers you tell your website visitor‘s browser that the files you specify are not changing until after a certain time, for example a month.
How To enable browser caching
Edit .htaccess and append
With same Expiry Date
<ifmodule mod_expires.c> <filesmatch "\.(jpg|gif|png|html|gif|js |css)$"> ExpiresActive on ExpiresDefault "access plus 1 month" </filesmatch> </ifmodule>
With different Expiry Date
Time option are: