How to Speed Up WordPress With Leverage Browser Caching?
Your WordPress speed is a very important part for good search engine ranking. And leverage Browser Caching is MUST to achieve that. Although there are many WordPress plugins like WP-Super Cache, Fastest cache, W3 Total Cache etc., you can do the same without installing any WordPress plugin.
But what exactly is “Leverage Browsing Cache”?
Browser caching is a feature that ‘remembers’ the resources specified in the code had already been loaded previously by browser. Or you can say that your browser will not download these files again, if your visitor browse your website.
With leverage Browser Caching you can tell Browsers when your files usually change, e.g. every month, every week, etc. This will fasten up your website because Browser will only make requests to your Server after the declared time. PageSpeed is a Google Ranking Factor so it is important to have a fast website.
In this article, we’ll show how to significantly improve your WordPress site speed by editing your .htaccess file and set up leverage browser cache.
Just edit your .htaccess file and add these lines there.
# Browser Caching
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 2 days"
Note: Be sure to take backup of your .htaccess file before making any changes in that. That will help you to restore back original .htaccess file, in case something goes wrong.
You can also use WordPress plugin like Browser Caching with .htaccess to achieve the same. Just install and activate the plugin. Follow these steps to configure this plugin.
- Go to ‘Tools’ in the Dashboard Sidebarand look for ‘Browser Caching’.
- Read the instructions on the Plugin Dahboard.
- Check if your website has a .htaccess file. You can either do this by pressing the button ‘check .htaccess file’ or look directly in your ‘root’ directory. Make sure the file is writable.
- Also check if you are already using Browser Caching with ‘Expires’. Therefore search for the code shown above in your .htaccess file.
- If you are not already using Browser Caching with Expires press the ‘activate Browser Caching’ button and the code will get added to your .htaccess file.
https://zwordpress.com/wordpress-tutorials/speed-wordpress-leverage-browser-caching/https://zwordpress.com/wp-content/uploads/2016/11/browser.jpghttps://zwordpress.com/wp-content/uploads/2016/11/browser-150x144.jpgWordPress Tutorialsbrowser cache,Browser Caching,improve website loading speed,Leverage Browser Caching,load time,website load speedYour WordPress speed is a very important part for good search engine ranking. And leverage Browser Caching is MUST to achieve that. Although there are many WordPress plugins like WP-Super Cache, Fastest cache, W3 Total Cache etc., you can do the same without installing any WordPress plugin. But what exactly...WordPress [email protected]AdministratorzWordpress