CAll Us: +91 88 00 563434   Login

How to Solve Leverage Browser Caching Warning in WordPress?

You are here:
  • Main
  • Wordpress
  • How to Solve Leverage Browser Caching Warning in WordPress?
< All Topics

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.

Knowledge Base