{"id":14927,"date":"2026-11-08T23:27:39","date_gmt":"2026-11-08T22:27:39","guid":{"rendered":"https:\/\/mybox.com\/help\/?post_type=manual_kb&#038;p=14927"},"modified":"2026-11-08T23:27:43","modified_gmt":"2026-11-08T22:27:43","slug":"cdn-vs-server-side-caching-vs-browser-caching-which-improves-website-speed","status":"publish","type":"manual_kb","link":"https:\/\/mybox.com\/help\/en\/knowledgebase\/cdn-vs-server-side-caching-vs-browser-caching-which-improves-website-speed\/","title":{"rendered":"CDN vs Server-Side Caching vs Browser Caching: Which Improves Website Speed?"},"content":{"rendered":"\n<div class=\"translation-block translation-block-merged\"><p class=\"wp-block-paragraph\">Browser caching, server-side caching, and CDN caching improve website speed at different points in the delivery process. The right approach depends on whether your site is static, dynamic, or an online store.<\/p><div id=\"ez-toc-container\" class=\"ez-toc-v2_0_86 ez-toc-wrap-left counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/cdn-vs-server-side-caching-vs-browser-caching-which-improves-website-speed\/#How_the_three_caching_layers_work\" >How the three caching layers work<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/cdn-vs-server-side-caching-vs-browser-caching-which-improves-website-speed\/#Browser_caching\" >Browser caching<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/cdn-vs-server-side-caching-vs-browser-caching-which-improves-website-speed\/#Server-side_caching\" >Server-side caching<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/cdn-vs-server-side-caching-vs-browser-caching-which-improves-website-speed\/#CDN_caching\" >CDN caching<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/cdn-vs-server-side-caching-vs-browser-caching-which-improves-website-speed\/#Which_caching_layer_helps_in_each_situation\" >Which caching layer helps in each situation?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/cdn-vs-server-side-caching-vs-browser-caching-which-improves-website-speed\/#Speed_setup_cost_and_freshness\" >Speed, setup, cost, and freshness<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/cdn-vs-server-side-caching-vs-browser-caching-which-improves-website-speed\/#How_online_stores_need_a_different_caching_approach\" >How online stores need a different caching approach<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/cdn-vs-server-side-caching-vs-browser-caching-which-improves-website-speed\/#Choosing_one_layer_or_combining_layers\" >Choosing one layer or combining layers<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/cdn-vs-server-side-caching-vs-browser-caching-which-improves-website-speed\/#What_to_expect_after_changing_caching\" >What to expect after changing caching<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_the_three_caching_layers_work\"><\/span>How the three caching layers work<span class=\"ez-toc-section-end\"><\/span><\/h2><h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Browser_caching\"><\/span>Browser caching<span class=\"ez-toc-section-end\"><\/span><\/h3><p class=\"wp-block-paragraph\">Browser caching keeps copies of website resources in a visitor&#8217;s browser. When the visitor returns, the browser may reuse those local copies instead of requesting the same resources again. This can make repeat visits faster.<\/p><\/div>\n\n<div id=\"mybox-2147022361\" class=\"mybox-content mybox-entity-placement\"><div class=\"early-access-banner-inpost\">\r\n  <div class=\"banner-left-inpost\">\r\n    <div class=\"icon-box-inpost\">\r\n      <img decoding=\"async\" src=\"https:\/\/mybox.com\/help\/wp-content\/uploads\/2026\/02\/square-info-icon.svg\" alt=\"Info\">\r\n    <\/div>\r\n    <div class=\"text-box-inpost\">\r\n      <span class=\"label-inpost\"><span class=\"translation-block translation-block-banner-text\">Early access<\/span><\/span>\r\n      <h4><span class=\"translation-block translation-block-banner-text\">Still need help?<\/span><\/h4>\r\n      <p><span class=\"translation-block translation-block-banner-text\">Contact our customer service team.<\/span><\/p>\r\n    <\/div>\r\n  <\/div>\r\n\r\n  <div class=\"banner-right-inpost\">\r\n    <a href=\"https:\/\/panel.mybox.com\/helpdesk2\/v\/list\/\" class=\"banner-button-inpost\"><span class=\"translation-block translation-block-banner-text\">Message us<\/span><\/a>\r\n  <\/div>\r\n<\/div><\/div>\n\n<div class=\"translation-block translation-block-merged\"><p class=\"wp-block-paragraph\">Browser caching is most useful for resources that do not change often, such as files used across many pages. It mainly benefits the same visitor. It does not make the first visit faster in the same way, and it does not reduce the work required to deliver a page to every new visitor.<\/p><h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Server-side_caching\"><\/span>Server-side caching<span class=\"ez-toc-section-end\"><\/span><\/h3><p class=\"wp-block-paragraph\">Server-side caching stores prepared website data on the hosting server. The server can then reuse that data instead of rebuilding the same response for every request. This reduces repeated processing and can improve loading speed for dynamic websites.<\/p><p class=\"wp-block-paragraph\">For WordPress, LiteSpeed Cache is a performance optimisation plugin that works together with server-level caching. If WordPress was installed automatically from the mybox panel, LiteSpeed Cache may already be available or ready for configuration. See the <a href=\"https:\/\/mybox.com\/help\/knowledgebase\/litespeed-cache-overview-for-wordpress\/\">LiteSpeed Cache overview for WordPress<\/a> for the product-specific context.<\/p><p class=\"wp-block-paragraph\">Server-side caching is useful when a site generates pages dynamically. It can also be useful when many visitors request the same page, because the server can reuse a cached result rather than repeat the same work.<\/p><h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"CDN_caching\"><\/span>CDN caching<span class=\"ez-toc-section-end\"><\/span><\/h3><p class=\"wp-block-paragraph\">A CDN, or Content Delivery Network, is a distributed network of servers that delivers website content to users more efficiently. Instead of serving all content from one server, a CDN stores copies of selected website resources on servers in multiple geographic regions. Read the <a href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/what-is-a-cdn\/\">mybox definition of a CDN<\/a> for more background.<\/p><p class=\"wp-block-paragraph\">CDN caching is most useful when visitors are located in different regions or when a site serves many static resources. A visitor can receive a cached resource from a suitable CDN location instead of requesting every resource from the hosting server.<\/p><h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Which_caching_layer_helps_in_each_situation\"><\/span>Which caching layer helps in each situation?<span class=\"ez-toc-section-end\"><\/span><\/h2><figure class=\"wp-block-table\"><table>\n<thead>\n<tr><th>Website situation<\/th><th>Most useful layer<\/th><th>Reason<\/th><\/tr>\n<\/thead>\n<tbody>\n<tr><td>Static website<\/td><td>Browser caching and CDN caching<\/td><td>Static resources can be reused by returning visitors and delivered from distributed locations.<\/td><\/tr>\n<tr><td>Dynamic website<\/td><td>Server-side caching, often combined with browser and CDN caching<\/td><td>The server can reuse prepared responses while static resources are delivered efficiently.<\/td><\/tr>\n<tr><td>Online store<\/td><td>Carefully separated caching layers<\/td><td>Public content can be cached, while private shopper interactions need to remain current.<\/td><\/tr>\n<\/tbody>\n<\/table><\/figure><h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Speed_setup_cost_and_freshness\"><\/span>Speed, setup, cost, and freshness<span class=\"ez-toc-section-end\"><\/span><\/h2><p class=\"wp-block-paragraph\"><strong>Speed impact:<\/strong> Browser caching can provide the quickest repeat access for one visitor because the resource is already local. Server-side caching reduces repeated work on the hosting server. CDN caching can reduce the distance between a visitor and selected website resources.<\/p><p class=\"wp-block-paragraph\"><strong>Setup complexity:<\/strong> Browser caching is controlled through the website&#8217;s cache rules and the visitor&#8217;s browser. Server-side caching depends on the hosting environment and, for WordPress, may involve LiteSpeed Cache. CDN caching adds another delivery layer and requires clear rules for which resources may be stored.<\/p><p class=\"wp-block-paragraph\"><strong>Cost:<\/strong> Browser caching is part of the visitor&#8217;s browsing process. Server-side caching uses the hosting environment. CDN caching uses a distributed delivery service. The practical cost comparison depends on the services included with the chosen hosting setup and CDN arrangement.<\/p><p class=\"wp-block-paragraph\"><strong>Cache invalidation:<\/strong> Invalidation means removing or refreshing an old cached copy after content changes. Each layer can hold a different copy, so a visible update may depend on the browser, server-side cache, and CDN cache all receiving the new version. A caching plan should define which content may remain cached and how changed content is refreshed.<\/p><h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_online_stores_need_a_different_caching_approach\"><\/span>How online stores need a different caching approach<span class=\"ez-toc-section-end\"><\/span><\/h2><p class=\"wp-block-paragraph\">Online stores contain both public content and private shopper interactions. Product or other public resources may benefit from CDN delivery, while cart, checkout, account, and session-related content must remain connected to the current shopper session.<\/p><p class=\"wp-block-paragraph\">The mybox guidance for <a href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/woocommerce-on-cdn-what-to-cache-and-what-not-to-cache\/\">WooCommerce on a CDN<\/a> describes this balance as serving static-grade performance for guests while protecting private interactions for shoppers. This means a CDN should not be treated as a reason to cache every response. The cache rules must separate content that is safe to reuse from content that depends on the shopper.<\/p><h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Choosing_one_layer_or_combining_layers\"><\/span>Choosing one layer or combining layers<span class=\"ez-toc-section-end\"><\/span><\/h2><ul class=\"wp-block-list\">\n<li><strong>Choose browser caching as a basic layer<\/strong> when the main goal is faster repeat visits for returning visitors.<\/li>\n<li><strong>Add server-side caching<\/strong> when a dynamic site or WordPress installation repeatedly generates the same page data.<\/li>\n<li><strong>Add CDN caching<\/strong> when visitors are spread across regions or the site serves many selected static resources.<\/li>\n<li><strong>Combine the layers<\/strong> when the site needs both efficient server processing and fast delivery of static resources.<\/li>\n<li><strong>Use stricter cache rules for an online store<\/strong> so public content can be delivered efficiently without caching private shopper interactions.<\/li>\n<\/ul><h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"What_to_expect_after_changing_caching\"><\/span>What to expect after changing caching<span class=\"ez-toc-section-end\"><\/span><\/h2><p class=\"wp-block-paragraph\">A cache change does not always appear in every browser or location at the same time. A visitor may still receive an older cached copy while another visitor receives the updated resource. CDN propagation typically takes a few hours, although it can take longer depending on the domain registrar and network conditions. This is expected behaviour for distributed delivery.<\/p><p class=\"wp-block-paragraph\">The safest choice is not always the layer with the broadest reach. Use browser caching for repeat visitors, server-side caching for repeated server work, and CDN caching for selected resources delivered across geographic locations. Combining them can improve speed, but the cache rules must match the difference between public content and private, changing data.<\/p><\/div>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"template":"","format":"standard","manualknowledgebasecat":[25,53,28,125],"manual_kb_tag":[198,364,1323,6072,9488,12080,12089],"class_list":["post-14927","manual_kb","type-manual_kb","status-publish","format-standard","hentry","manualknowledgebasecat-hosting","manualknowledgebasecat-servers","manualknowledgebasecat-others","manualknowledgebasecat-websites","manual_kb_tag-woocommerce","manual_kb_tag-website-speed","manual_kb_tag-cache-invalidation","manual_kb_tag-wordpress-caching","manual_kb_tag-browser-caching","manual_kb_tag-server-side-caching-2","manual_kb_tag-cdn-caching"],"_links":{"self":[{"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manual_kb\/14927","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manual_kb"}],"about":[{"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/types\/manual_kb"}],"author":[{"embeddable":true,"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":4,"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manual_kb\/14927\/revisions"}],"predecessor-version":[{"id":14936,"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manual_kb\/14927\/revisions\/14936"}],"wp:attachment":[{"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/media?parent=14927"}],"wp:term":[{"taxonomy":"manualknowledgebasecat","embeddable":true,"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manualknowledgebasecat?post=14927"},{"taxonomy":"manual_kb_tag","embeddable":true,"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manual_kb_tag?post=14927"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}