{"id":7703,"date":"2026-04-15T10:00:55","date_gmt":"2026-04-15T08:00:55","guid":{"rendered":"https:\/\/mybox.com\/help\/?post_type=manual_kb&#038;p=7703"},"modified":"2026-04-15T10:00:57","modified_gmt":"2026-04-15T08:00:57","slug":"woocommerce-pe-cdn-ce-sa-cache-si-ce-sa-nu-cache","status":"publish","type":"manual_kb","link":"https:\/\/mybox.com\/help\/ro\/knowledgebase\/woocommerce-on-cdn-what-to-cache-and-what-not-to-cache\/","title":{"rendered":"WooCommerce pe CDN - ce s\u0103 cache \u0219i ce s\u0103 nu cache"},"content":{"rendered":"<div class=\"translation-block translation-block-merged\">\n<p class=\"wp-block-paragraph\" id=\"p-rc_462e7d24cd828c6f-263\">Strategically managing your WooCommerce store on a CDN is about mastering the balance between speed and session integrity.<sup><\/sup> In <strong>2026<\/strong>, the goal is to serve <strong>static-grade performance<\/strong> for guests while ensuring zero-latency, private interactions for shoppers.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">On your <strong>mybox<\/strong> server, an incorrect CDN configuration is the #1 cause of &#8220;leaked carts&#8221; (where one user sees another&#8217;s items) or checkout failures.<\/p>\n\n\n\n<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-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/woocommerce-on-cdn-what-to-cache-and-what-not-to-cache\/#The_%E2%80%9CGolden_Rule%E2%80%9D_of_WooCommerce_Caching\" >The &#8220;Golden Rule&#8221; of WooCommerce Caching<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/woocommerce-on-cdn-what-to-cache-and-what-not-to-cache\/#1_The_%E2%80%9CWhat%E2%80%9D_to_Cache_The_Guest_Experience\" >1. The &#8220;What&#8221; to Cache (The Guest Experience)<\/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\/ro\/knowledgebase\/woocommerce-on-cdn-what-to-cache-and-what-not-to-cache\/#2_The_%E2%80%9CWhat_NOT%E2%80%9D_to_Cache_The_Private_Experience\" >2. The &#8220;What NOT&#8221; to Cache (The Private Experience)<\/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\/ro\/knowledgebase\/woocommerce-on-cdn-what-to-cache-and-what-not-to-cache\/#3_Professional_Cloudflare_Configuration_for_2026\" >3. Professional Cloudflare Configuration for 2026<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/woocommerce-on-cdn-what-to-cache-and-what-not-to-cache\/#4_Advanced_2026_Performance_Early_Hints_APO\" >4. Advanced 2026 Performance: Early Hints &amp; APO<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/woocommerce-on-cdn-what-to-cache-and-what-not-to-cache\/#5_Safety_and_Reliability_Checklist\" >5. Safety and Reliability Checklist<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/woocommerce-on-cdn-what-to-cache-and-what-not-to-cache\/#Summary\" >Summary<\/a><\/li><\/ul><\/nav><\/div>\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"The_%E2%80%9CGolden_Rule%E2%80%9D_of_WooCommerce_Caching\"><\/span><strong>The &#8220;Golden Rule&#8221; of WooCommerce Caching<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<\/div>\n\n<div id=\"mybox-3672606851\" 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\">Acces timpuriu<\/span><\/span>\r\n      <h4><span class=\"translation-block translation-block-banner-text\">Mai ave\u021bi nevoie de ajutor?<\/span><\/h4>\r\n      <p><span class=\"translation-block translation-block-banner-text\">Contacta\u021bi echipa noastr\u0103 de servicii pentru clien\u021bi.<\/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\">Trimite mesaj<\/span><\/a>\r\n  <\/div>\r\n<\/div><\/div>\n\n<div class=\"translation-block translation-block-merged\"><p class=\"wp-block-paragraph\"><strong>Cache HTML only for guests.<\/strong> Never cache a page that contains a unique user session ID or a <code>Set-Cookie<\/code> header for a private session.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"1_The_%E2%80%9CWhat%E2%80%9D_to_Cache_The_Guest_Experience\"><\/span><strong>1. The &#8220;What&#8221; to Cache (The Guest Experience)<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">For users who are not logged in and have an empty cart, you should aggressively cache these elements at the CDN edge:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Product &amp; Category Pages:<\/strong> These are your heaviest pages. Caching them at the edge can drop your <strong>TTFB from 800ms to 50ms<\/strong>.<\/li>\n\n\n\n<li><strong>The Homepage &amp; Blog:<\/strong> High-traffic landing pages should always be cached.<\/li>\n\n\n\n<li><strong>Static Assets (Images, CSS, JS):<\/strong> Use a long TTL (e.g., 30 days) with <strong>Brotli compression<\/strong> enabled.<\/li>\n\n\n\n<li><strong>WebP\/AVIF Variants:<\/strong> Ensure your CDN supports varying content based on the <code>Accept<\/code> header so modern browsers get the fastest formats.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"2_The_%E2%80%9CWhat_NOT%E2%80%9D_to_Cache_The_Private_Experience\"><\/span><strong>2. The &#8220;What NOT&#8221; to Cache (The Private Experience)<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">To avoid session leaks on <strong>mybox<\/strong>, you must create explicit <strong>Bypass Rules<\/strong> for:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Dynamic Paths:<\/strong> <code>\/cart\/*<\/code>, <code>\/checkout\/*<\/code>, <code>\/my-account\/*<\/code>, <code>\/wp-admin\/*<\/code>.<\/li>\n\n\n\n<li><strong>AJAX Endpoints:<\/strong> <code>\/wc-ajax=*<\/code> and <code>?wc-ajax=get_refreshed_fragments<\/code>. These update the mini-cart and must always be live.<\/li>\n\n\n\n<li><strong>Sensitive Parameters:<\/strong> Any URL containing <code>?add-to-cart=<\/code>, <code>?logout=<\/code>, or <code>?password-reset=<\/code>.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"3_Professional_Cloudflare_Configuration_for_2026\"><\/span><strong>3. Professional Cloudflare Configuration for 2026<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">If you are using Cloudflare for your <strong>mybox<\/strong> store, follow this priority-ordered setup in <strong>Cache Rules<\/strong>:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Rule A: Hard Bypass (Priority 1)<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Criteria:<\/strong> If URI Path contains <code>\/cart\/<\/code> OR <code>\/checkout\/<\/code> OR <code>\/my-account\/<\/code>.<\/li>\n\n\n\n<li><strong>Action:<\/strong> <strong>Bypass Cache<\/strong>.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Rule B: Cookie-Based Bypass (Priority 2)<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Criteria:<\/strong> If Cookie contains <code>wordpress_logged_in<\/code> OR <code>wp_woocommerce_session<\/code> OR <code>woocommerce_items_in_cart<\/code>.<\/li>\n\n\n\n<li><strong>Action:<\/strong> <strong>Bypass Cache<\/strong>. This ensures that the moment a guest adds an item to their cart, they leave the &#8220;static&#8221; edge and start getting live data from your <strong>mybox<\/strong> server.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Rule C: Cache Everything (Priority 3)<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Criteria:<\/strong> (Default\/Rest of site).<\/li>\n\n\n\n<li><strong>Action:<\/strong> <strong>Eligible for Cache<\/strong>. Set <strong>Edge Cache TTL<\/strong> to 2 hours and <strong>Browser Cache TTL<\/strong> to 30 minutes.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"4_Advanced_2026_Performance_Early_Hints_APO\"><\/span><strong>4. Advanced 2026 Performance: Early Hints &amp; APO<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Early Hints (103):<\/strong> Enable this in Cloudflare Speed settings. It sends <code>Link<\/code> headers for your main CSS and fonts before the server finishes the HTML, cutting <strong>LCP<\/strong> by up to 30%.<\/li>\n\n\n\n<li><strong>Automatic Platform Optimization (APO):<\/strong> For $5\/mo, Cloudflare\u2019s official plugin handles all the complex bypass logic automatically. It is the safest &#8220;set and forget&#8221; way to speed up WooCommerce on <strong>mybox<\/strong>.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"5_Safety_and_Reliability_Checklist\"><\/span><strong>5. Safety and Reliability Checklist<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Vary Header:<\/strong> Ensure your server sends <code>Vary: Cookie<\/code>. This tells the CDN that the version of the page depends on the user&#8217;s cookies.<\/li>\n\n\n\n<li><strong>Cache-Control: no-store:<\/strong> On your cart and checkout pages, your <strong>mybox<\/strong> server must send <code>Cache-Control: no-store, no-cache, must-revalidate<\/code>. This is your ultimate fail-safe.<\/li>\n\n\n\n<li><strong>Test with Two Browsers:<\/strong> Add an item to the cart in Chrome, then check the same page in Firefox Incognito. If you see the item in Firefox, your cache rules are failing.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Summary\"><\/span><strong>Summary<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The perfect WooCommerce CDN setup is a &#8220;guest-first&#8221; strategy. By aggressively caching product pages for visitors and using <strong>Cookie-based bypasses<\/strong> for shoppers, you provide a lightning-fast experience without ever risking a session leak.<\/p>\n<\/div>","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"template":"","format":"standard","manualknowledgebasecat":[58,60],"manual_kb_tag":[9088,9488,9489,9490,9491,9492,198,936,4243,6195],"class_list":["post-7703","manual_kb","type-manual_kb","status-publish","format-standard","hentry","manualknowledgebasecat-web-applications-cms","manualknowledgebasecat-wordpress-plugins","manual_kb_tag-mybox-server","manual_kb_tag-browser-caching","manual_kb_tag-cache-control-no-store","manual_kb_tag-vary-header","manual_kb_tag-cookie-based-bypass","manual_kb_tag-cache-everything","manual_kb_tag-woocommerce","manual_kb_tag-cloudflare","manual_kb_tag-cache-bypass","manual_kb_tag-edge-caching"],"_links":{"self":[{"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manual_kb\/7703","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manual_kb"}],"about":[{"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/types\/manual_kb"}],"author":[{"embeddable":true,"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":1,"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manual_kb\/7703\/revisions"}],"predecessor-version":[{"id":7704,"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manual_kb\/7703\/revisions\/7704"}],"wp:attachment":[{"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/media?parent=7703"}],"wp:term":[{"taxonomy":"manualknowledgebasecat","embeddable":true,"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manualknowledgebasecat?post=7703"},{"taxonomy":"manual_kb_tag","embeddable":true,"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manual_kb_tag?post=7703"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}