{"id":35811,"date":"2024-02-06T16:11:52","date_gmt":"2024-02-06T16:11:52","guid":{"rendered":"https:\/\/www.wpstaq.com\/?post_type=knowledgebase&#038;p=35811"},"modified":"2024-07-03T05:20:04","modified_gmt":"2024-07-03T05:20:04","slug":"exclude-paths-from-next-gen-cdn-cache","status":"publish","type":"knowledgebase","link":"https:\/\/www.wpstaq.com\/sg\/knowledgebase\/exclude-paths-from-next-gen-cdn-cache\/","title":{"rendered":"Exclude Paths from Next-Gen CDN Cache"},"content":{"rendered":"<h2>Understanding Cache Control in WordPress<\/h2>\n<p>WordPress doesn&#8217;t send &#8220;No-Cache&#8221; headers by default.<\/p>\n<p>At Staq, we maintain this flexibility by not enforcing &#8220;No-Cache&#8221; headers when our Page Cache feature is off, ensuring compatibility with various caching plugins.<\/p>\n<h2>Next-Gen CDN Use Cases<\/h2>\n<p>The Next-Gen CDN is optimized for delivering static content quickly to users globally. It&#8217;s ideal with a caching plugin but can also support dynamic content in certain scenarios.<\/p>\n<h2>Excluding Paths from CDN Caching<\/h2>\n<p>To exclude specific paths from Next-Gen CDN caching:<\/p>\n<p>1. Navigate to the Staq dashboard, under Settings &gt; WP Config File.<br \/>\n2. Add the <strong>WPSH_CLOUDFRONT_EXCLUDE_PATHS<\/strong> constant, listing paths to exclude in a comma-separated format:<br \/>\n<code>\"\/path1,\/path2\"<\/code><\/p>\n<p>For example, excluding the homepage and shop:<\/p>\n<p><code class=\"!whitespace-pre hljs language-arduino\"><span class=\"hljs-string\">\"\/,\/shop\"<\/span><\/code><\/p>\n<div class=\"flex-1 overflow-hidden\">\n<div class=\"react-scroll-to-bottom--css-pgodi-79elbk h-full\">\n<div class=\"react-scroll-to-bottom--css-pgodi-1n7m0yu\">\n<div class=\"flex flex-col pb-9 text-sm\">\n<div class=\"w-full text-token-text-primary\" data-testid=\"conversation-turn-9\">\n<div class=\"px-4 py-2 justify-center text-base md:gap-6 m-auto\">\n<div class=\"flex flex-1 text-base mx-auto gap-3 md:px-5 lg:px-1 xl:px-5 md:max-w-3xl lg:max-w-[40rem] xl:max-w-[48rem] group final-completion\">\n<div class=\"relative flex w-full flex-col lg:w-[calc(100%-115px)] agent-turn\">\n<div class=\"flex-col gap-1 md:gap-3\">\n<div class=\"flex flex-grow flex-col max-w-full\">\n<div class=\"min-h-[20px] text-message flex flex-col items-start gap-3 whitespace-pre-wrap break-words [.text-message+&amp;]:mt-5 overflow-x-auto\" data-message-author-role=\"assistant\" data-message-id=\"149e15cb-e22b-4f59-8ac8-c6077420de15\">\n<div class=\"markdown prose w-full break-words dark:prose-invert light\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"w-full pt-2 md:pt-0 dark:border-white\/20 md:border-transparent md:dark:border-transparent md:w-[calc(100%-.5rem)]\">\n<form class=\"stretch mx-2 flex flex-row gap-3 last:mb-2 md:mx-4 md:last:mb-6 lg:mx-auto lg:max-w-2xl xl:max-w-3xl\">\n<div class=\"relative flex h-full flex-1 items-stretch md:flex-col\">\n<div class=\"flex w-full items-center\"><\/div>\n<\/div>\n<\/form>\n<\/div>\n","protected":false},"featured_media":0,"parent":0,"template":"","class_list":["post-35811","knowledgebase","type-knowledgebase","status-publish","hentry","categories-cdn-aws"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Exclude Paths from Next-Gen CDN Cache - Managed Hosting Platform for WordPress<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wpstaq.com\/knowledgebase\/exclude-paths-from-next-gen-cdn-cache\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Exclude Paths from Next-Gen CDN Cache - Managed Hosting Platform for WordPress\" \/>\n<meta property=\"og:description\" content=\"Understanding Cache Control in WordPress WordPress doesn&#8217;t send &#8220;No-Cache&#8221; headers by default. At Staq, we maintain this flexibility by not enforcing &#8220;No-Cache&#8221; headers when our Page Cache feature is off, ensuring compatibility with various caching plugins. Next-Gen CDN Use Cases The Next-Gen CDN is optimized for delivering static content quickly to users globally. It&#8217;s ideal&hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wpstaq.com\/knowledgebase\/exclude-paths-from-next-gen-cdn-cache\/\" \/>\n<meta property=\"og:site_name\" content=\"Managed Hosting Platform for WordPress\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/staqhosting\/\" \/>\n<meta property=\"article:modified_time\" content=\"2024-07-03T05:20:04+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/exclude-paths-from-next-gen-cdn-cache\\\/\",\"url\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/exclude-paths-from-next-gen-cdn-cache\\\/\",\"name\":\"Exclude Paths from Next-Gen CDN Cache - Managed Hosting Platform for WordPress\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/#website\"},\"datePublished\":\"2024-02-06T16:11:52+00:00\",\"dateModified\":\"2024-07-03T05:20:04+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/exclude-paths-from-next-gen-cdn-cache\\\/#breadcrumb\"},\"inLanguage\":\"en-sg\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/exclude-paths-from-next-gen-cdn-cache\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/exclude-paths-from-next-gen-cdn-cache\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.wpstaq.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Exclude Paths from Next-Gen CDN Cache\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/#website\",\"url\":\"https:\\\/\\\/www.wpstaq.com\\\/\",\"name\":\"Managed Hosting Platform for WordPress\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.wpstaq.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-sg\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/#organization\",\"name\":\"Staq\",\"alternateName\":\"WPStaq\",\"url\":\"https:\\\/\\\/www.wpstaq.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-sg\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.wpstaq.com\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/cropped-LogoNoText.png\",\"contentUrl\":\"https:\\\/\\\/www.wpstaq.com\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/cropped-LogoNoText.png\",\"width\":512,\"height\":512,\"caption\":\"Staq\"},\"image\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/staqhosting\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/wpstaq\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Exclude Paths from Next-Gen CDN Cache - Managed Hosting Platform for WordPress","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:\/\/www.wpstaq.com\/knowledgebase\/exclude-paths-from-next-gen-cdn-cache\/","og_locale":"en_US","og_type":"article","og_title":"Exclude Paths from Next-Gen CDN Cache - Managed Hosting Platform for WordPress","og_description":"Understanding Cache Control in WordPress WordPress doesn&#8217;t send &#8220;No-Cache&#8221; headers by default. At Staq, we maintain this flexibility by not enforcing &#8220;No-Cache&#8221; headers when our Page Cache feature is off, ensuring compatibility with various caching plugins. Next-Gen CDN Use Cases The Next-Gen CDN is optimized for delivering static content quickly to users globally. It&#8217;s ideal&hellip;","og_url":"https:\/\/www.wpstaq.com\/knowledgebase\/exclude-paths-from-next-gen-cdn-cache\/","og_site_name":"Managed Hosting Platform for WordPress","article_publisher":"https:\/\/www.facebook.com\/staqhosting\/","article_modified_time":"2024-07-03T05:20:04+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wpstaq.com\/knowledgebase\/exclude-paths-from-next-gen-cdn-cache\/","url":"https:\/\/www.wpstaq.com\/knowledgebase\/exclude-paths-from-next-gen-cdn-cache\/","name":"Exclude Paths from Next-Gen CDN Cache - Managed Hosting Platform for WordPress","isPartOf":{"@id":"https:\/\/www.wpstaq.com\/#website"},"datePublished":"2024-02-06T16:11:52+00:00","dateModified":"2024-07-03T05:20:04+00:00","breadcrumb":{"@id":"https:\/\/www.wpstaq.com\/knowledgebase\/exclude-paths-from-next-gen-cdn-cache\/#breadcrumb"},"inLanguage":"en-sg","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wpstaq.com\/knowledgebase\/exclude-paths-from-next-gen-cdn-cache\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wpstaq.com\/knowledgebase\/exclude-paths-from-next-gen-cdn-cache\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.wpstaq.com\/"},{"@type":"ListItem","position":2,"name":"Exclude Paths from Next-Gen CDN Cache"}]},{"@type":"WebSite","@id":"https:\/\/www.wpstaq.com\/#website","url":"https:\/\/www.wpstaq.com\/","name":"Managed Hosting Platform for WordPress","description":"","publisher":{"@id":"https:\/\/www.wpstaq.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wpstaq.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-sg"},{"@type":"Organization","@id":"https:\/\/www.wpstaq.com\/#organization","name":"Staq","alternateName":"WPStaq","url":"https:\/\/www.wpstaq.com\/","logo":{"@type":"ImageObject","inLanguage":"en-sg","@id":"https:\/\/www.wpstaq.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/05\/cropped-LogoNoText.png","contentUrl":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/05\/cropped-LogoNoText.png","width":512,"height":512,"caption":"Staq"},"image":{"@id":"https:\/\/www.wpstaq.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/staqhosting\/","https:\/\/www.linkedin.com\/company\/wpstaq"]}]}},"_links":{"self":[{"href":"https:\/\/www.wpstaq.com\/sg\/wp-json\/wp\/v2\/knowledgebase\/35811","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wpstaq.com\/sg\/wp-json\/wp\/v2\/knowledgebase"}],"about":[{"href":"https:\/\/www.wpstaq.com\/sg\/wp-json\/wp\/v2\/types\/knowledgebase"}],"wp:attachment":[{"href":"https:\/\/www.wpstaq.com\/sg\/wp-json\/wp\/v2\/media?parent=35811"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}