Explore our in-depth
tutorials
crafted by
skilled professionals!

Our Latest News, Advice and Thoughts

How to Solve Leverage Browser Caching Warning in WordPress?

You are here:

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.

Leverage Browser Caching

3) Tick the checkbox ‘Present Hidden Recordsdata’ and click on “Save” button.

Leverage Browser Caching

4) Discover and edit the file ‘.htaccess’ underneath public_html.

Leverage Browser Caching

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.

Leave a Comment