{"id":25162,"date":"2022-02-16T13:38:07","date_gmt":"2022-02-16T13:38:07","guid":{"rendered":"https:\/\/1-grid.com\/knowledge\/?p=25162"},"modified":"2023-10-19T12:52:15","modified_gmt":"2023-10-19T12:52:15","slug":"how-to-enable-leverage-browser-caching-for-my-website","status":"publish","type":"ht_kb","link":"https:\/\/1grid.co.za\/knowledge\/how-to-enable-leverage-browser-caching-for-my-website\/","title":{"rendered":"How to enable leverage browser caching for my website ?"},"content":{"rendered":"<article id=\"article-body\" class=\"article-body\">\n<blockquote><p><span style=\"font-family: Helvetica, sans-serif; color: #000000;\">This article explains how to optimize your website speed by enabling browser caching for faster website browsing.<\/span><\/p><\/blockquote>\n<h1><span style=\"font-family: Helvetica,sans-serif;\">\u00a0<\/span><\/h1>\n<h1><span style=\"font-family: Helvetica, sans-serif; color: #000000;\"><strong>What is browser caching ?<\/strong><\/span><\/h1>\n<p><span style=\"font-family: Helvetica,sans-serif;\">\u00a0<\/span><\/p>\n<ul>\n<li>\n<h4><span style=\"font-family: Helvetica, sans-serif; font-size: 16px; color: #000000;\">Browser caching stores webpage resource files on a local computer when a user visits a webpage.<\/span><\/h4>\n<\/li>\n<li>\n<h4><span style=\"font-family: Helvetica, sans-serif; font-size: 16px; color: #000000;\">&#8220;Leveraging&#8221; browser caching is when \u00a0you tell the browsers how their resources should be dealt with.<\/span><\/h4>\n<\/li>\n<\/ul>\n<p><span style=\"font-family: Helvetica,sans-serif;\">\u00a0<\/span><\/p>\n<p><span style=\"font-family: Helvetica,sans-serif;\">\u00a0<\/span><\/p>\n<h2><span style=\"font-family: Helvetica, sans-serif; color: #000000;\"><strong>How to setup leverage browser caching ?<\/strong><\/span><\/h2>\n<h2><span style=\"font-family: Helvetica, sans-serif; color: #000000;\"><span style=\"font-size: 16px;\">For most people, the way to enable caching is to add some code to a file called .htaccess on your hosting Control Panel.<\/span><\/span><\/h2>\n<h2><span style=\"font-family: Helvetica,sans-serif;\"><span style=\"font-size: 16px;\"><br \/>\n<\/span><span style=\"font-size: 24px; color: #000000;\"><strong>Step 1 &#8211;\u00a0<\/strong>Going to the<strong>\u00a0file manager<\/strong> on your hosting Control Panel.<\/span><\/span><\/h2>\n<p><span style=\"font-family: Helvetica,sans-serif;\">\u00a0<\/span><\/p>\n<div class=\"image-container \"><a class=\"image-enlarge-link\" href=\"https:\/\/s3.amazonaws.com\/cdn.freshdesk.com\/data\/helpdesk\/attachments\/production\/33038424772\/original\/zMHTweMgSH4-6TWkwcsIFdyafsU0Js6T_A.png?1584539551\" target=\"_blank\" rel=\"noopener\" aria-describedby=\"\"><img decoding=\"async\" class=\"fr-fic fr-dib lightbox-image aligncenter\" style=\"width: 520px; height: 230px;\" src=\"https:\/\/s3.amazonaws.com\/cdn.freshdesk.com\/data\/helpdesk\/attachments\/production\/33038424772\/original\/zMHTweMgSH4-6TWkwcsIFdyafsU0Js6T_A.png?1584539551\" data-id=\"33038424748\" data-index=\"0\" \/><\/a><\/div>\n<p><span style=\"font-family: Helvetica,sans-serif;\">\u00a0<\/span><\/p>\n<h3><span style=\"font-family: Helvetica, sans-serif; color: #000000;\"><strong><span style=\"font-size: 24px;\">Step 2 &#8211;\u00a0<\/span><\/strong><span style=\"font-size: 24px;\">Then editing your <strong>.htaccess<\/strong> file.<\/span><\/span><\/h3>\n<div class=\"image-container \"><a class=\"image-enlarge-link\" href=\"https:\/\/s3.amazonaws.com\/cdn.freshdesk.com\/data\/helpdesk\/attachments\/production\/33038417034\/original\/F25zIy0goGDLyWyVjZJZvECV9GVtDDX9iA.png?1584531053\" target=\"_blank\" rel=\"noopener\" aria-describedby=\"\"><img decoding=\"async\" class=\"fr-fic fr-dib fr-bordered lightbox-image aligncenter\" style=\"width: 510px; height: 436.785px;\" src=\"https:\/\/s3.amazonaws.com\/cdn.freshdesk.com\/data\/helpdesk\/attachments\/production\/33038417034\/original\/F25zIy0goGDLyWyVjZJZvECV9GVtDDX9iA.png?1584531053\" data-id=\"33038417015\" data-index=\"1\" \/><\/a><\/div>\n<p><span style=\"font-family: Helvetica,sans-serif;\">\u00a0<\/span><\/p>\n<h3><span style=\"font-family: Helvetica, sans-serif; color: #000000;\"><strong><span style=\"font-size: 24px;\">Step 3-\u00a0<\/span><\/strong><span style=\"font-size: 24px;\">Then editing your <strong>.htaccess<\/strong> file.<\/span><\/span><\/h3>\n<p><span style=\"font-family: Helvetica,sans-serif;\">\u00a0<\/span><\/p>\n<p><span style=\"font-family: Helvetica,sans-serif;\">\u00a0<\/span><\/p>\n<div class=\"image-container \"><a class=\"image-enlarge-link\" href=\"https:\/\/s3.amazonaws.com\/cdn.freshdesk.com\/data\/helpdesk\/attachments\/production\/33038472673\/original\/wrdqRuDI2t_3tAu2mPDav_G6ZNhnmjAZGQ.png?1584613901\" target=\"_blank\" rel=\"noopener\" aria-describedby=\"\"><img decoding=\"async\" class=\"fr-dib lightbox-image aligncenter\" style=\"box-sizing: border-box; border: 0px; max-width: 100%; cursor: pointer; text-align: start; color: #000000; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; font-size: 13px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; width: 495px; height: 368px;\" src=\"https:\/\/s3.amazonaws.com\/cdn.freshdesk.com\/data\/helpdesk\/attachments\/production\/33038472673\/original\/wrdqRuDI2t_3tAu2mPDav_G6ZNhnmjAZGQ.png?1584613901\" data-attachment=\"[object Object]\" data-id=\"33038472673\" data-index=\"2\" \/><\/a><\/div>\n<ul>\n<li><span style=\"font-family: Helvetica, sans-serif; color: #000000;\"><span style=\"font-size: 16px;\">The code below tells browsers what to cache and how long to &#8220;remember&#8221; it. It should be added to the top of your .htaccess file.<\/span><\/span><\/li>\n<\/ul>\n<p><span style=\"font-family: Helvetica,sans-serif;\">\u00a0<\/span><\/p>\n<pre style=\"text-align: left;\"><span style=\"font-family: Helvetica,sans-serif;\"><span style=\"font-size: 10px;\">## EXPIRES CACHING ##\n&lt;IfModule mod_expires.c&gt;\nExpiresActive On\nExpiresByType image\/jpg \"access 1 year\"\nExpiresByType image\/jpeg \"access 1 year\"\nExpiresByType image\/gif \"access 1 year\"\nExpiresByType image\/png \"access 1 year\"\nExpiresByType text\/css \"access 1 month\"\nExpiresByType text\/html \"access 1 month\"\nExpiresByType application\/pdf \"access 1 month\"\nExpiresByType text\/x-javascript \"access 1 month\"\nExpiresByType application\/x-shockwave-flash \"access 1 month\"\nExpiresByType image\/x-icon \"access 1 year\"\nExpiresDefault \"access 1 month\"\n&lt;\/IfModule&gt;\n## EXPIRES CACHING ##<\/span><\/span><\/pre>\n<p><span style=\"font-family: Helvetica,sans-serif;\">\u00a0<\/span><\/p>\n<p><span style=\"font-family: Helvetica,sans-serif;\">\u00a0<\/span><\/p>\n<p><span style=\"font-family: Helvetica, sans-serif; color: #000000;\"><span style=\"font-size: 16px;\">Once completed you may save your .htaccess file and browser caching will start immediately.<\/span><\/span><\/p>\n<p><span style=\"font-family: Helvetica,sans-serif;\">\u00a0<\/span><\/p>\n<hr \/>\n<p><span style=\"font-family: Helvetica,sans-serif;\"><span style=\"font-size: 16px;\">\u00a0<\/span><\/span><\/p>\n<p><span style=\"font-family: Helvetica,sans-serif;\"><span style=\"font-size: 16px;\"><span style=\"color: #000000;\"><strong>TIP:\u00a0<\/strong>Should you require more in depth information regarding this issue we would recommend this article<\/span>\u00a0<\/span><a href=\"https:\/\/varvy.com\/pagespeed\/leverage-browser-caching.html\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"font-size: 16px;\">here.<\/span><\/a><\/span><\/p>\n<p><span style=\"font-family: Helvetica,sans-serif;\">\u00a0<\/span><\/p>\n<\/article>\n","protected":false},"excerpt":{"rendered":"<p>This article explains how to optimize your website speed by enabling browser caching for faster website browsing. \u00a0 What is browser caching ? \u00a0 Browser caching stores webpage resource files on a local computer when a user visits a webpage. &#8220;Leveraging&#8221; browser caching is when \u00a0you tell the browsers how&#8230;<\/p>\n","protected":false},"author":21,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"ht-kb-category":[24],"ht-kb-tag":[153,161,1297,355,420,480,567,1112],"class_list":["post-25162","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-website","ht_kb_tag-browser","ht_kb_tag-cache","ht_kb_tag-caching","ht_kb_tag-enable","ht_kb_tag-for","ht_kb_tag-how-to","ht_kb_tag-leverage","ht_kb_tag-website"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How To Enable Leverage Browser Caching For My Website?<\/title>\n<meta name=\"description\" content=\"Boost your website&#039;s performance by enabling browser caching with our step-by-step guide: 1-grid Knowledge Base\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/1grid.co.za\/knowledge\/how-to-enable-leverage-browser-caching-for-my-website\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Enable Leverage Browser Caching For My Website?\" \/>\n<meta property=\"og:description\" content=\"Boost your website&#039;s performance by enabling browser caching with our step-by-step guide: 1-grid Knowledge Base\" \/>\n<meta property=\"og:url\" content=\"https:\/\/1grid.co.za\/knowledge\/how-to-enable-leverage-browser-caching-for-my-website\/\" \/>\n<meta property=\"og:site_name\" content=\"1-grid Knowledge Base\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/1grid.co.za\/\" \/>\n<meta property=\"article:modified_time\" content=\"2023-10-19T12:52:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/s3.amazonaws.com\/cdn.freshdesk.com\/data\/helpdesk\/attachments\/production\/33038424772\/original\/zMHTweMgSH4-6TWkwcsIFdyafsU0Js6T_A.png?1584539551\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@1grid_hosting\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/1grid.co.za\/knowledge\/how-to-enable-leverage-browser-caching-for-my-website\/\",\"url\":\"https:\/\/1grid.co.za\/knowledge\/how-to-enable-leverage-browser-caching-for-my-website\/\",\"name\":\"How To Enable Leverage Browser Caching For My Website?\",\"isPartOf\":{\"@id\":\"https:\/\/1grid.co.za\/knowledge\/#website\"},\"datePublished\":\"2022-02-16T13:38:07+00:00\",\"dateModified\":\"2023-10-19T12:52:15+00:00\",\"description\":\"Boost your website's performance by enabling browser caching with our step-by-step guide: 1-grid Knowledge Base\",\"breadcrumb\":{\"@id\":\"https:\/\/1grid.co.za\/knowledge\/how-to-enable-leverage-browser-caching-for-my-website\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/1grid.co.za\/knowledge\/how-to-enable-leverage-browser-caching-for-my-website\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/1grid.co.za\/knowledge\/how-to-enable-leverage-browser-caching-for-my-website\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/1grid.co.za\/knowledge\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to enable leverage browser caching for my website ?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/1grid.co.za\/knowledge\/#website\",\"url\":\"https:\/\/1grid.co.za\/knowledge\/\",\"name\":\"1-Grid Domain Hosting Knowledge Base\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/1grid.co.za\/knowledge\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/1grid.co.za\/knowledge\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/1grid.co.za\/knowledge\/#organization\",\"name\":\"1-Grid Domain Hosting Knowledge Base\",\"url\":\"https:\/\/1grid.co.za\/knowledge\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/1grid.co.za\/knowledge\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/1grid.co.za\/knowledge\/wp-content\/uploads\/2023\/01\/1-grid-logo-color.svg\",\"contentUrl\":\"https:\/\/1grid.co.za\/knowledge\/wp-content\/uploads\/2023\/01\/1-grid-logo-color.svg\",\"width\":100,\"height\":100,\"caption\":\"1-Grid Domain Hosting Knowledge Base\"},\"image\":{\"@id\":\"https:\/\/1grid.co.za\/knowledge\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/1grid.co.za\/\",\"https:\/\/twitter.com\/1grid_hosting\",\"https:\/\/www.instagram.com\/1grid_hosting\/\",\"https:\/\/za.linkedin.com\/company\/1-grid\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How To Enable Leverage Browser Caching For My Website?","description":"Boost your website's performance by enabling browser caching with our step-by-step guide: 1-grid Knowledge Base","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/1grid.co.za\/knowledge\/how-to-enable-leverage-browser-caching-for-my-website\/","og_locale":"en_US","og_type":"article","og_title":"How To Enable Leverage Browser Caching For My Website?","og_description":"Boost your website's performance by enabling browser caching with our step-by-step guide: 1-grid Knowledge Base","og_url":"https:\/\/1grid.co.za\/knowledge\/how-to-enable-leverage-browser-caching-for-my-website\/","og_site_name":"1-grid Knowledge Base","article_publisher":"https:\/\/www.facebook.com\/1grid.co.za\/","article_modified_time":"2023-10-19T12:52:15+00:00","og_image":[{"url":"https:\/\/s3.amazonaws.com\/cdn.freshdesk.com\/data\/helpdesk\/attachments\/production\/33038424772\/original\/zMHTweMgSH4-6TWkwcsIFdyafsU0Js6T_A.png?1584539551"}],"twitter_card":"summary_large_image","twitter_site":"@1grid_hosting","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/1grid.co.za\/knowledge\/how-to-enable-leverage-browser-caching-for-my-website\/","url":"https:\/\/1grid.co.za\/knowledge\/how-to-enable-leverage-browser-caching-for-my-website\/","name":"How To Enable Leverage Browser Caching For My Website?","isPartOf":{"@id":"https:\/\/1grid.co.za\/knowledge\/#website"},"datePublished":"2022-02-16T13:38:07+00:00","dateModified":"2023-10-19T12:52:15+00:00","description":"Boost your website's performance by enabling browser caching with our step-by-step guide: 1-grid Knowledge Base","breadcrumb":{"@id":"https:\/\/1grid.co.za\/knowledge\/how-to-enable-leverage-browser-caching-for-my-website\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/1grid.co.za\/knowledge\/how-to-enable-leverage-browser-caching-for-my-website\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/1grid.co.za\/knowledge\/how-to-enable-leverage-browser-caching-for-my-website\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/1grid.co.za\/knowledge\/"},{"@type":"ListItem","position":2,"name":"How to enable leverage browser caching for my website ?"}]},{"@type":"WebSite","@id":"https:\/\/1grid.co.za\/knowledge\/#website","url":"https:\/\/1grid.co.za\/knowledge\/","name":"1-Grid Domain Hosting Knowledge Base","description":"","publisher":{"@id":"https:\/\/1grid.co.za\/knowledge\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/1grid.co.za\/knowledge\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/1grid.co.za\/knowledge\/#organization","name":"1-Grid Domain Hosting Knowledge Base","url":"https:\/\/1grid.co.za\/knowledge\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/1grid.co.za\/knowledge\/#\/schema\/logo\/image\/","url":"https:\/\/1grid.co.za\/knowledge\/wp-content\/uploads\/2023\/01\/1-grid-logo-color.svg","contentUrl":"https:\/\/1grid.co.za\/knowledge\/wp-content\/uploads\/2023\/01\/1-grid-logo-color.svg","width":100,"height":100,"caption":"1-Grid Domain Hosting Knowledge Base"},"image":{"@id":"https:\/\/1grid.co.za\/knowledge\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/1grid.co.za\/","https:\/\/twitter.com\/1grid_hosting","https:\/\/www.instagram.com\/1grid_hosting\/","https:\/\/za.linkedin.com\/company\/1-grid"]}]}},"_links":{"self":[{"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/ht-kb\/25162","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/users\/21"}],"replies":[{"embeddable":true,"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/comments?post=25162"}],"version-history":[{"count":3,"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/ht-kb\/25162\/revisions"}],"predecessor-version":[{"id":30850,"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/ht-kb\/25162\/revisions\/30850"}],"wp:attachment":[{"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/media?parent=25162"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/ht-kb-category?post=25162"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/ht-kb-tag?post=25162"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}