blog posts

hosting image
Leverage browser caching WebHostingPeople

How to Solve Leverage Browser Caching Warning in WordPress?

< All Topics
You are here:
Print

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 WebHostingPeople

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

Leverage browser caching WebHostingPeople

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

Leverage browser caching WebHostingPeople

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 Articles

Catagory