{"id":574,"date":"2021-10-01T13:50:09","date_gmt":"2021-10-01T13:50:09","guid":{"rendered":"http:\/\/blog.hostinger.io\/hostinger-tutorials\/uncategorized\/websiteimproving-website-performance-leveraging-browser-cache\/"},"modified":"2026-03-09T19:19:04","modified_gmt":"2026-03-09T19:19:04","slug":"how-to-leverage-browser-caching","status":"publish","type":"post","link":"\/ng\/tutorials\/how-to-leverage-browser-caching\/","title":{"rendered":"How to improve website performance: leverage browser caching"},"content":{"rendered":"<?xml encoding=\"utf-8\" ?><p>Improving website performance is essential to reduce bounce rates and drive more traffic. One of the ways to do that is to leverage browser caching.&nbsp;<\/p><p>This tutorial will explain more about browser caching and why it is important. In addition, we will share how to leverage browser caching using <strong>.htaccess<\/strong> and with plugins.<\/p><p>Finally, this article will show how to check if your website performance has improved with a speed test.<\/p><p>\n\n\n\n<\/p><h2 class=\"wp-block-heading\" id=\"h-what-is-browser-caching\">What Is Browser Caching<\/h2><p>Caching is a technique used by browsers to store pages&rsquo; content in the local storage. As such, users won&rsquo;t have to download the same data all over again when revisiting the site.<\/p><p>Here&rsquo;s how it works: when you visit a site for the first time, the browser will download content from the server. But, when you revisit the page &mdash; or refresh it, the loading time will be shorter since the browser has stored some of the content in the <a href=\"\/ng\/tutorials\/website-cache\/\">web cache<\/a>.<\/p><p>Keep in mind that browsers can only cache <strong>static content<\/strong>, which is delivered to the users without any modification from the server. The most common examples of static content are <strong>images<\/strong>, <strong>HTML<\/strong>, <strong>CSS<\/strong>, and <strong>JavaScript<\/strong>.<\/p><p>The site owner can set how long the content will be cached. For example, if the interval is one year, then the cache will be cleared after that time.<\/p><h2 class=\"wp-block-heading\" id=\"h-why-do-we-need-to-leverage-browser-cache\">Why Do We Need to Leverage Browser Cache<\/h2><p>If you&rsquo;ve used analyzer tools like <a href=\"\/ng\/tutorials\/gtmetrix-for-testing-websites-speed\/\">GTMetrix<\/a> and <a href=\"https:\/\/developers.google.com\/speed\/pagespeed\/insights\/\">Google PageSpeed Insights<\/a>, you can see they recommend users to enable browser caching.<\/p><p>But the question is, aside from cutting loading time, what makes this technique a must-do for site owners?<\/p><p>Well, here are other benefits that you&rsquo;ll get by leveraging browser caching:<\/p><ul class=\"wp-block-list\">\n<li><strong>Reduce bandwidth consumption<\/strong> &mdash; the browser won&rsquo;t have to download the static content all over again.<\/li>\n\n\n\n<li><strong>Cut the number of requests to the server<\/strong> &mdash; instead of loading from servers, the content will be loaded from the cache.<\/li>\n\n\n\n<li><strong>Better user experience<\/strong> &mdash; a fast site leads to happy visitors.<\/li>\n\n\n\n<li><strong>Improve SEO (Search Engine Optimization)<\/strong> &mdash; <a href=\"https:\/\/webmasters.googleblog.com\/2018\/01\/using-page-speed-in-mobile-search.html\">Google announced<\/a> that page speed is one of the ranking factors for mobile searches.<\/li>\n<\/ul><h2 class=\"wp-block-heading\" id=\"h-leveraging-browser-cache-using-htaccess\">Leveraging Browser Cache Using .htaccess<\/h2><p>First thing first, you can leverage browser caching by modifying the <a href=\"\/ng\/tutorials\/locate-and-create-htaccess\/\">.htaccess file<\/a>. To do so, you can use an FTP client like <a href=\"https:\/\/filezilla-project.org\">FileZilla<\/a> or the file manager in your web hosting control panel. This method might suit you well if you&rsquo;re an advanced user.<\/p><p>In this tutorial, we&rsquo;re going to use Hostinger&rsquo;s hPanel:<\/p><ol class=\"wp-block-list\">\n<li>Open the <strong>File Manager<\/strong> under the <strong>Files<\/strong> section and access the <strong>public_html<\/strong> directory.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/10\/Screenshot-2023-03-23-at-11.15.26.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"885\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/10\/Screenshot-2023-03-23-at-11.15.26.png\/w=1024,h=1024,fit=scale-down\" alt=\"public_html directory hPanel\" class=\"wp-image-81524\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/10\/Screenshot-2023-03-23-at-11.15.26.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/10\/Screenshot-2023-03-23-at-11.15.26.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/10\/Screenshot-2023-03-23-at-11.15.26.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/10\/Screenshot-2023-03-23-at-11.15.26.png\/w=768,fit=scale-down 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><ol start=\"2\" class=\"wp-block-list\">\n<li>Double-click on the file and insert the following code:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">## EXPIRES CACHING ## &lt;IfModule mod_expires.c&gt; ExpiresActive On ExpiresByType image\/jpg \"access plus 1 year\" ExpiresByType image\/jpeg \"access plus 1 year\" ExpiresByType image\/gif \"access plus 1 year\" ExpiresByType image\/png \"access plus 1 year\" ExpiresByType text\/css \"access plus 1 month\" ExpiresByType application\/pdf \"access plus 1 month\" ExpiresByType text\/x-javascript \"access plus 1 month\" ExpiresByType application\/x-shockwave-flash \"access plus 1 month\" ExpiresByType image\/x-icon \"access plus 1 year\" ExpiresDefault \"access plus 7 days\" &lt;\/IfModule&gt; ## EXPIRES CACHING ##<\/pre><ol start=\"3\" class=\"wp-block-list\">\n<li>Hit <strong>Save &amp; Close<\/strong>.<\/li>\n<\/ol><p>Notice from the code above that each file type has its own expiry time. For instance, <strong>gif<\/strong> images will be stored for <strong>one year<\/strong>.<\/p><p>You can adjust the expiry times according to your needs. However, make sure that it&rsquo;s not too long because your recurring visitors might not get the updated version of your site.<\/p><figure class=\"wp-block-image size-full\"><a class=\"hgr-tutorials-cta hgr-tutorials-cta-web-hosting\" href=\"\/ng\/web-hosting\" target=\"_blank\" rel=\"noreferrer noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"300\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/11\/Web-hosting_in-text-banner.png\/public\" alt=\"Hostinger web hosting banner\" class=\"wp-image-98604\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/11\/Web-hosting_in-text-banner.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/11\/Web-hosting_in-text-banner.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/11\/Web-hosting_in-text-banner.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/11\/Web-hosting_in-text-banner.png\/w=768,fit=scale-down 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><h2 class=\"wp-block-heading\" id=\"h-leveraging-process-with-plugins\">Leveraging Process With Plugins<\/h2><p>One of the easiest ways to leverage browser caching and <a href=\"\/ng\/tutorials\/speed-up-wordpress\/\">speed up a WordPress site<\/a> is by using <strong>plugins<\/strong>. There are plenty of caching plugins available in the <a href=\"https:\/\/wordpress.org\/plugins\/\">plugin directory<\/a>, but we recommend using <strong>WP Rocket<\/strong> and <strong>WP Fastest Cache<\/strong>.<\/p><h3 class=\"wp-block-heading\" id=\"h-1-wp-rocket\">1. <a href=\"https:\/\/wp-rocket.me\">WP Rocket<\/a><\/h3><div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"496\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2016\/06\/official-homepage-of-wp-rocket.png\/public\" alt=\"official homepage of wp rocket\" class=\"wp-image-21086\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2016\/06\/official-homepage-of-wp-rocket.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2016\/06\/official-homepage-of-wp-rocket.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2016\/06\/official-homepage-of-wp-rocket.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2016\/06\/official-homepage-of-wp-rocket.png\/w=768,fit=scale-down 768w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2016\/06\/official-homepage-of-wp-rocket.png\/w=990,fit=scale-down 990w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2016\/06\/official-homepage-of-wp-rocket.png\/w=1320,fit=scale-down 1320w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div><p>WP Rocket is a performance optimization plugin that will help you improve your site speed through various features, including <strong>browser cache<\/strong>.<\/p><p>If you&rsquo;re using an ecommerce platform like <a href=\"https:\/\/woocommerce.com\">WooCommerce<\/a>, <a href=\"https:\/\/wordpress.org\/plugins\/jigoshop-ecommerce\/\">Jigoshop<\/a>, or<a href=\"https:\/\/wordpress.org\/plugins\/wp-shop-original\/\"> WP-Shop<\/a>, you might want to avoid storing high-risk data like customers&rsquo; addresses and payment details. For that reason, WP Rocket will automatically prevent browsers from caching cart and checkout pages.<\/p><p>Furthermore, it also provides other speed improvement features like <a href=\"\/ng\/tutorials\/enable-gzip-compression\/\">GZIP compression<\/a>, <a href=\"\/ng\/tutorials\/website\/improving-website-performance-minifying-css-html-and-javascript\/\">JavaScript, HTML, and CSS minification<\/a>, and <a href=\"\/ng\/tutorials\/remove-query-strings-static-resources\/\">query strings removal<\/a>. To get those functions, you can purchase one of its three paid plans that range from<strong> $49<\/strong> to <strong>$249\/year<\/strong>.<\/p><p>Each license will provide <strong>support and updates for one year<\/strong>. If you renew the license, you&rsquo;ll get a <strong>30%<\/strong> <strong>discount<\/strong>.<\/p><p>You don&rsquo;t need to copy-paste any license key when installing the plugin as it will be activated automatically.<\/p><h3 class=\"wp-block-heading\" id=\"h-2-wp-fastest-cache\">2. <a href=\"https:\/\/www.wpfastestcache.com\/\">WP Fastest Cache<\/a><\/h3><div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"772\" height=\"251\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2016\/06\/official-homepage-of-wp-fastest-cache.jpg\/public\" alt=\"official homepage of wp fastest cache\" class=\"wp-image-21087\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2016\/06\/official-homepage-of-wp-fastest-cache.jpg\/w=772,fit=scale-down 772w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2016\/06\/official-homepage-of-wp-fastest-cache.jpg\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2016\/06\/official-homepage-of-wp-fastest-cache.jpg\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2016\/06\/official-homepage-of-wp-fastest-cache.jpg\/w=768,fit=scale-down 768w\" sizes=\"auto, (max-width: 772px) 100vw, 772px\" \/><\/figure><\/div><p>If you&rsquo;re looking for a <strong>free<\/strong> caching plugin with robust features, WP Fastest Cache might suit your needs. It offers <strong>browser caching<\/strong>, <strong>GZIP compression<\/strong>, and <strong>minification<\/strong> at no charge.<\/p><p>The plugin provides an intuitive dashboard where you can easily set up your site&rsquo;s caching configuration. Simply tick a box to leverage browser caching and click a button to delete all cached files.<\/p><p>On another note, you can get additional features like <a href=\"https:\/\/www.wpfastestcache.com\/premium\/mobile-cache\/\">mobile cache<\/a>, <a href=\"https:\/\/www.wpfastestcache.com\/premium\/widget-cache-reduce-the-number-of-sql-queries\/\">widget cache<\/a>, and <a href=\"https:\/\/www.wpfastestcache.com\/premium\/cache-statics\/\">cache statistics<\/a> by purchasing the <strong>premium plan<\/strong> that costs<strong> $49.99<\/strong>. However, please note that each license only works for <strong>one website<\/strong>.<\/p><p>You can easily download and install the free version from the WordPress plugin directory. However, it&rsquo;s a bit different if you&rsquo;ve purchased the premium version.<\/p><p>An email containing the .<strong>zip<\/strong> file of the premium plugin will be sent to your email. After that, upload the file to WordPress via the <strong>Plugin<\/strong> menu, and you&rsquo;re ready to go!<\/p><p>        <div class=\"protip\">\n            <div class=\"protip__heading\">\n                <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                    <path d=\"M1.49234 23.5024C1.23229 23.5024 0.972242 23.4024 0.782206 23.2123C0.562165 22.9923 0.452144 22.6822 0.502153 22.3722C0.562165 21.9221 1.14227 17.9113 3.00262 16.351C3.63274 15.8209 4.43289 15.5509 5.26305 15.5609C6.09321 15.5909 6.87335 15.9109 7.47347 16.4911C8.6937 17.6913 8.76371 19.6717 7.6435 20.9919C6.0832 22.8523 2.08245 23.4324 1.63237 23.4924C1.59236 23.4924 1.54235 23.4924 1.50234 23.4924L1.49234 23.5024ZM5.16303 17.5613C4.84297 17.5613 4.53291 17.6713 4.29287 17.8813C3.60274 18.4614 3.07264 19.9317 2.75258 21.242C4.06282 20.9219 5.5331 20.3918 6.11321 19.7017C6.55329 19.1716 6.54329 18.3814 6.0832 17.9213C5.85316 17.7013 5.5431 17.5713 5.20304 17.5613C5.19304 17.5613 5.17303 17.5613 5.16303 17.5613ZM11.7243 21.8821C11.4942 21.8821 11.2642 21.8021 11.0841 21.652C10.8541 21.462 10.7241 21.1819 10.7241 20.8819V15.9109L8.08358 13.2705H3.11264C2.81259 13.2705 2.53254 13.1404 2.3425 12.9104C2.15246 12.6803 2.07245 12.3803 2.12246 12.0902C2.19247 11.7102 2.84259 8.36953 4.70294 7.12929C6.33325 6.04909 8.96375 6.49918 10.244 6.80923C11.5442 4.96889 13.2546 3.4286 15.2349 2.33839C17.4553 1.11816 19.9858 0.518051 22.4963 0.498047C23.0464 0.498047 23.4865 0.948132 23.4865 1.49824C23.4865 5.0389 22.3763 9.97983 17.1753 13.7605C17.4853 15.0408 17.9354 17.6613 16.8552 19.2816C15.615 21.1419 12.2744 21.7921 11.8943 21.8621C11.8343 21.8721 11.7743 21.8821 11.7143 21.8821H11.7243ZM12.7245 16.181V19.6016C13.7146 19.2916 14.7948 18.7915 15.2049 18.1814C15.675 17.4812 15.605 16.091 15.385 14.9008C14.5248 15.3808 13.6346 15.8109 12.7245 16.181ZM9.66388 12.0302L11.9643 14.3307C13.1845 13.8306 14.3648 13.2204 15.485 12.5103C19.9358 9.51974 21.2361 5.60901 21.4561 2.53843C19.6157 2.67846 17.8254 3.20856 16.2051 4.09872C14.2847 5.14892 12.6544 6.68921 11.4942 8.54956C10.7841 9.65977 10.174 10.82 9.66388 12.0302ZM4.39289 11.2701H7.81353C8.1936 10.3599 8.63368 9.46974 9.11377 8.60957C7.92355 8.38953 6.51329 8.31952 5.81315 8.78961C5.19304 9.19968 4.70294 10.3099 4.39289 11.2701Z\" fill=\"#673DE6\"\/>\n                <\/svg>\n                <p class=\"protip__title\">\n                    Looking for more ways to speed up your website?                <\/p>\n            <\/div>\n            <p class=\"protip__content\">Check out our guide on <a href=\"\/ng\/tutorials\/improving-website-performance-enabling-keep-alive\/\">enabling keep-alive<\/a><\/p>\n                    <\/div>\n        \n\n\n\n<\/p><h2 class=\"wp-block-heading\" id=\"h-testing-browser-caching\">Testing Browser Caching<\/h2><p>To check how leveraging browser caching affects your <a href=\"\/ng\/tutorials\/website-speed-test\/\">website speed test<\/a>, use an analysis tool like <strong><a href=\"https:\/\/gtmetrix.com\/\">GTMetrix<\/a><\/strong>. For instance, here is our result before enabling browser caching:<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"1083\" height=\"388\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2016\/06\/leverage-browser-caching-problem-on-gtmetrix.png\/public\" alt=\"leverage browser caching problem on gtmetrix\" class=\"wp-image-21088\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2016\/06\/leverage-browser-caching-problem-on-gtmetrix.png\/w=1083,fit=scale-down 1083w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2016\/06\/leverage-browser-caching-problem-on-gtmetrix.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2016\/06\/leverage-browser-caching-problem-on-gtmetrix.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2016\/06\/leverage-browser-caching-problem-on-gtmetrix.png\/w=768,fit=scale-down 768w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2016\/06\/leverage-browser-caching-problem-on-gtmetrix.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2016\/06\/leverage-browser-caching-problem-on-gtmetrix.png\/w=990,fit=scale-down 990w\" sizes=\"auto, (max-width: 1083px) 100vw, 1083px\" \/><\/figure><\/div><p> After inserting the code into the <strong>.htaccess <\/strong>file, we scored a perfect 100:<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"1074\" height=\"143\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2016\/06\/solved-leverage-browser-caching-problem-on-gtmetrix.png\/public\" alt=\"solved leverage browser caching problem on gtmetrix\" class=\"wp-image-21089\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2016\/06\/solved-leverage-browser-caching-problem-on-gtmetrix.png\/w=1074,fit=scale-down 1074w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2016\/06\/solved-leverage-browser-caching-problem-on-gtmetrix.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2016\/06\/solved-leverage-browser-caching-problem-on-gtmetrix.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2016\/06\/solved-leverage-browser-caching-problem-on-gtmetrix.png\/w=768,fit=scale-down 768w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2016\/06\/solved-leverage-browser-caching-problem-on-gtmetrix.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2016\/06\/solved-leverage-browser-caching-problem-on-gtmetrix.png\/w=990,fit=scale-down 990w\" sizes=\"auto, (max-width: 1074px) 100vw, 1074px\" \/><\/figure><\/div><h2 class=\"wp-block-heading\" id=\"h-conclusion\">Conclusion<\/h2><p>You&rsquo;ve learned how to improve your site performance by leveraging browser caching. There are two ways to do it &mdash; inserting code into <strong>.htaccess<\/strong> file and installing a caching plugin. Once it&rsquo;s enabled, you will see how it affects your page speed.<\/p><p>Do you have any questions regarding browser caching? Let us know in the comment section below!<\/p><p>        <div class=\"protip\">\n            <div class=\"protip__heading\">\n                <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                    <path d=\"M1.49234 23.5024C1.23229 23.5024 0.972242 23.4024 0.782206 23.2123C0.562165 22.9923 0.452144 22.6822 0.502153 22.3722C0.562165 21.9221 1.14227 17.9113 3.00262 16.351C3.63274 15.8209 4.43289 15.5509 5.26305 15.5609C6.09321 15.5909 6.87335 15.9109 7.47347 16.4911C8.6937 17.6913 8.76371 19.6717 7.6435 20.9919C6.0832 22.8523 2.08245 23.4324 1.63237 23.4924C1.59236 23.4924 1.54235 23.4924 1.50234 23.4924L1.49234 23.5024ZM5.16303 17.5613C4.84297 17.5613 4.53291 17.6713 4.29287 17.8813C3.60274 18.4614 3.07264 19.9317 2.75258 21.242C4.06282 20.9219 5.5331 20.3918 6.11321 19.7017C6.55329 19.1716 6.54329 18.3814 6.0832 17.9213C5.85316 17.7013 5.5431 17.5713 5.20304 17.5613C5.19304 17.5613 5.17303 17.5613 5.16303 17.5613ZM11.7243 21.8821C11.4942 21.8821 11.2642 21.8021 11.0841 21.652C10.8541 21.462 10.7241 21.1819 10.7241 20.8819V15.9109L8.08358 13.2705H3.11264C2.81259 13.2705 2.53254 13.1404 2.3425 12.9104C2.15246 12.6803 2.07245 12.3803 2.12246 12.0902C2.19247 11.7102 2.84259 8.36953 4.70294 7.12929C6.33325 6.04909 8.96375 6.49918 10.244 6.80923C11.5442 4.96889 13.2546 3.4286 15.2349 2.33839C17.4553 1.11816 19.9858 0.518051 22.4963 0.498047C23.0464 0.498047 23.4865 0.948132 23.4865 1.49824C23.4865 5.0389 22.3763 9.97983 17.1753 13.7605C17.4853 15.0408 17.9354 17.6613 16.8552 19.2816C15.615 21.1419 12.2744 21.7921 11.8943 21.8621C11.8343 21.8721 11.7743 21.8821 11.7143 21.8821H11.7243ZM12.7245 16.181V19.6016C13.7146 19.2916 14.7948 18.7915 15.2049 18.1814C15.675 17.4812 15.605 16.091 15.385 14.9008C14.5248 15.3808 13.6346 15.8109 12.7245 16.181ZM9.66388 12.0302L11.9643 14.3307C13.1845 13.8306 14.3648 13.2204 15.485 12.5103C19.9358 9.51974 21.2361 5.60901 21.4561 2.53843C19.6157 2.67846 17.8254 3.20856 16.2051 4.09872C14.2847 5.14892 12.6544 6.68921 11.4942 8.54956C10.7841 9.65977 10.174 10.82 9.66388 12.0302ZM4.39289 11.2701H7.81353C8.1936 10.3599 8.63368 9.46974 9.11377 8.60957C7.92355 8.38953 6.51329 8.31952 5.81315 8.78961C5.19304 9.19968 4.70294 10.3099 4.39289 11.2701Z\" fill=\"#673DE6\"\/>\n                <\/svg>\n                <p class=\"protip__title\">\n                    Learn More About Website Optimization                <\/p>\n            <\/div>\n            <p class=\"protip__content\"><a href=\"\/ng\/tutorials\/website-optimization\/\">Website Optimization: Top 10 Strategies to Improve Speed, UX, SEO<\/a><br>\n<a href=\"\/ng\/tutorials\/what-is-seo\/\">What Is SEO?<\/a><br>\n<a href=\"\/ng\/tutorials\/improving-website-performance-using-a-cdn\/\">How to Set Up a CDN<\/a><br>\n<a href=\"\/ng\/tutorials\/complete-guide-to-image-optimization\/\">Complete Guide to Image Optimization<\/a><br>\n<a href=\"\/ng\/tutorials\/clear-browser-cache\/\">How to Clear Browser Cache and History<\/a><\/p>\n                    <\/div>\n        \n<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Improving website performance is essential to reduce bounce rates and drive more traffic. One of the ways to do that is to leverage browser caching.&nbsp; This tutorial will explain more about browser caching and why it is important. In addition, we will share how to leverage browser caching using .htaccess and with plugins. Finally, this [&#8230;]<\/p>\n<p><a class=\"btn btn-secondary understrap-read-more-link\" href=\"\/ng\/tutorials\/how-to-leverage-browser-caching\/\">Read More&#8230;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_title":"How to Improve Website Performance: Leveraging Browser Cache","rank_math_description":"Website speed is a crucial SEO ranking factor. In this article, you will learn how to improve it by leveraging browser cache.","rank_math_focus_keyword":"gzip compression","footnotes":""},"categories":[22602],"tags":[],"class_list":["post-574","post","type-post","status-publish","format-standard","hentry","category-website-performance-optimization"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/tutorials\/how-to-leverage-browser-caching","default":0},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/tutoriels\/exploitation-cache","default":0},{"locale":"en-GB","link":"https:\/\/www.hostinger.com\/uk\/tutorials\/how-to-leverage-browser-caching","default":0},{"locale":"en-IN","link":"https:\/\/www.hostinger.com\/in\/tutorials\/how-to-leverage-browser-caching","default":0},{"locale":"en-CA","link":"https:\/\/www.hostinger.com\/ca\/tutorials\/how-to-leverage-browser-caching","default":0},{"locale":"en-PH","link":"https:\/\/www.hostinger.com\/ph\/tutorials\/how-to-leverage-browser-caching","default":0},{"locale":"en-MY","link":"https:\/\/www.hostinger.com\/my\/tutorials\/how-to-leverage-browser-caching","default":0},{"locale":"en-AU","link":"https:\/\/www.hostinger.com\/au\/tutorials\/how-to-leverage-browser-caching","default":0},{"locale":"en-NG","link":"https:\/\/www.hostinger.com\/ng\/tutorials\/how-to-leverage-browser-caching","default":0}],"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/posts\/574","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/comments?post=574"}],"version-history":[{"count":29,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/posts\/574\/revisions"}],"predecessor-version":[{"id":144726,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/posts\/574\/revisions\/144726"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/media?parent=574"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/categories?post=574"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/tags?post=574"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}