How to Solve Leverage Browser Caching Warning in WordPress?
Leverage Browser Caching means storing static information of an internet site in customer browser. The principle cause for the leverage looking caching is that the web-server doesn’t have the suitable header in place. This sorts of points may be resolved by including expires heading codes in .htaccess information.
1) Login to cPanel.
2) Choose the ‘File Supervisor’ menu underneath file part.
3) Tick the checkbox ‘Present Hidden Recordsdata’ and click on “Save” button.
4) Discover and edit the file ‘.htaccess’ underneath public_html.
5) Paste the next codes in ‘.htaccess’ file.
## EXPIRES HEADER CACHING ##
ExpiresActive On
ExpiresByType picture/jpg “entry 1 yr”
ExpiresByType picture/jpeg “entry 1 yr”
ExpiresByType picture/gif “entry 1 yr”
ExpiresByType picture/png “entry 1 yr”
ExpiresByType textual content/css “entry 1 month”
ExpiresByType software/pdf “entry 1 month”
ExpiresByType software/javascript “entry 1 month”
ExpiresByType software/x-javascript “entry 1 month”
ExpiresByType software/x-shockwave-flash “entry 1 month”
ExpiresByType picture/x-icon “entry 1 yr”
ExpiresDefault “entry 2 days”
## EXPIRES HEADER CACHING ##
That’s how we are able to resolve leverage browser caching warning in WordPress.