{"id":3219,"date":"2017-12-06T00:00:00","date_gmt":"2017-12-06T00:00:00","guid":{"rendered":"https:\/\/azure.microsoft.com\/blog\/cdn-caching-rules"},"modified":"2025-06-27T02:54:42","modified_gmt":"2025-06-27T09:54:42","slug":"cdn-caching-rules","status":"publish","type":"post","link":"https:\/\/azure.microsoft.com\/en-us\/blog\/cdn-caching-rules\/","title":{"rendered":"Control how your files are cached on Azure CDN using caching rules"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Content Delivery Networks (CDN) help bring your content closer to your users all over the world. One key way the CDN improves latency is by intelligently caching files on CDN edge servers located in various geographic regions. This new feature allows customers using Azure CDN standard from Verizon or Akamai to create rules to direct the CDN servers to override their default caching behavior. Azure CDN from Premium customers would still be able to use the Rules Engine to manage their cache.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This feature will allow you to specify cache duration of a specific file, files under a path, or specific file extensions to be cached based on values specified to the CDN. Many users find this easier than managing cache directive headers on the origin server itself.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example, you may wish to cache all files that end in <em>.jpg<\/em> for&nbsp;one year, since they don\u2019t change often, but cache files under the directory <em>\/news<\/em> for only an hour since that can change frequently.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In addition, users of the Dynamic Site Delivery optimization will now be able to deliver mixed (dynamic and static) content from a single endpoint by enabling caching for static files.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To learn more about how caching works and the default behavior on the different Optimization Types, see our documentation on <a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/cdn\/cdn-how-caching-works\">How Caching Works.<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To jump right into using caching rules, see our documentation on how to <a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/cdn\/cdn-caching-rules\">Control Azure CDN caching behavior with caching rules<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Content Delivery Networks (CDN) help bring your content closer to your users all over the world. One key way the CDN improves latency is by intelligently caching files on CDN edge servers located in various geographic regions. This new feature allows customers using Azure CDN standard from Verizon or Akamai to create rules to direct the CDN servers to override their default caching behavior.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ms_queue_id":[],"ep_exclude_from_search":false,"_classifai_error":"","_classifai_text_to_speech_error":"","_alt_title":"","footnotes":"","msx_community_cta_settings":[]},"categories":[1457],"tags":[],"audience":[3055,3053,3056],"content-type":[],"product":[],"tech-community":[],"topic":[],"coauthors":[974],"class_list":["post-3219","post","type-post","status-publish","format-standard","hentry","category-networking","audience-developers","audience-it-decision-makers","audience-it-implementors","review-flag-1680286581-295","review-flag-new-1680286579-546"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Control how your files are cached on Azure CDN using caching rules | Microsoft Azure Blog<\/title>\n<meta name=\"description\" content=\"Content Delivery Networks (CDN) help bring your content closer to your users all over the world. One key way the CDN improves latency is by intelligently caching files on CDN edge servers located in various geographic regions. This new feature allows customers using Azure CDN standard from Verizon or Akamai to create rules to direct the CDN servers to override their default caching behavior.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/azure.microsoft.com\/en-us\/blog\/cdn-caching-rules\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Control how your files are cached on Azure CDN using caching rules | Microsoft Azure Blog\" \/>\n<meta property=\"og:description\" content=\"Content Delivery Networks (CDN) help bring your content closer to your users all over the world. One key way the CDN improves latency is by intelligently caching files on CDN edge servers located in various geographic regions. This new feature allows customers using Azure CDN standard from Verizon or Akamai to create rules to direct the CDN servers to override their default caching behavior.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/azure.microsoft.com\/en-us\/blog\/cdn-caching-rules\/\" \/>\n<meta property=\"og:site_name\" content=\"Microsoft Azure Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/microsoftazure\" \/>\n<meta property=\"article:published_time\" content=\"2017-12-06T00:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-06-27T09:54:42+00:00\" \/>\n<meta name=\"author\" content=\"Richard Li\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@azure\" \/>\n<meta name=\"twitter:site\" content=\"@azure\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Richard Li\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/cdn-caching-rules\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/cdn-caching-rules\/\"},\"author\":[{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/author\/richard-li\/\",\"@type\":\"Person\",\"@name\":\"Richard Li\"}],\"headline\":\"Control how your files are cached on Azure CDN using caching rules\",\"datePublished\":\"2017-12-06T00:00:00+00:00\",\"dateModified\":\"2025-06-27T09:54:42+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/cdn-caching-rules\/\"},\"wordCount\":253,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/#organization\"},\"articleSection\":[\"Networking\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/azure.microsoft.com\/en-us\/blog\/cdn-caching-rules\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/cdn-caching-rules\/\",\"url\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/cdn-caching-rules\/\",\"name\":\"Control how your files are cached on Azure CDN using caching rules | Microsoft Azure Blog\",\"isPartOf\":{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/#website\"},\"datePublished\":\"2017-12-06T00:00:00+00:00\",\"dateModified\":\"2025-06-27T09:54:42+00:00\",\"description\":\"Content Delivery Networks (CDN) help bring your content closer to your users all over the world. One key way the CDN improves latency is by intelligently caching files on CDN edge servers located in various geographic regions. This new feature allows customers using Azure CDN standard from Verizon or Akamai to create rules to direct the CDN servers to override their default caching behavior.\",\"breadcrumb\":{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/cdn-caching-rules\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/azure.microsoft.com\/en-us\/blog\/cdn-caching-rules\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/cdn-caching-rules\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Blog home\",\"item\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Networking\",\"item\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/category\/networking\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Control how your files are cached on Azure CDN using caching rules\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/#website\",\"url\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/\",\"name\":\"Microsoft Azure Blog\",\"description\":\"Get the latest Azure news, updates, and announcements from the Azure blog. From product updates to hot topics, hear from the Azure experts.\",\"publisher\":{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/#organization\",\"name\":\"Microsoft Azure Blog\",\"url\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2024\/06\/microsoft_logo.webp\",\"contentUrl\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2024\/06\/microsoft_logo.webp\",\"width\":512,\"height\":512,\"caption\":\"Microsoft Azure Blog\"},\"image\":{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/microsoftazure\",\"https:\/\/x.com\/azure\",\"https:\/\/www.instagram.com\/microsoftdeveloper\/\",\"https:\/\/www.linkedin.com\/company\/16188386\",\"https:\/\/www.youtube.com\/user\/windowsazure\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/#\/schema\/person\/c702e5edd662b328b49b7e1180cab117\",\"name\":\"shakir\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/9342c7c05bb16548741bc5cd3a3e3b7ee0c8e746844ad2cc582db5beb5514c6f?s=96&d=mm&r=g7664e653ea371ce16eaf75e9fa8952c4\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/9342c7c05bb16548741bc5cd3a3e3b7ee0c8e746844ad2cc582db5beb5514c6f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/9342c7c05bb16548741bc5cd3a3e3b7ee0c8e746844ad2cc582db5beb5514c6f?s=96&d=mm&r=g\",\"caption\":\"shakir\"},\"sameAs\":[\"https:\/\/azure.microsoft.com\"],\"url\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/author\/shakir\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Control how your files are cached on Azure CDN using caching rules | Microsoft Azure Blog","description":"Content Delivery Networks (CDN) help bring your content closer to your users all over the world. One key way the CDN improves latency is by intelligently caching files on CDN edge servers located in various geographic regions. This new feature allows customers using Azure CDN standard from Verizon or Akamai to create rules to direct the CDN servers to override their default caching behavior.","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:\/\/azure.microsoft.com\/en-us\/blog\/cdn-caching-rules\/","og_locale":"en_US","og_type":"article","og_title":"Control how your files are cached on Azure CDN using caching rules | Microsoft Azure Blog","og_description":"Content Delivery Networks (CDN) help bring your content closer to your users all over the world. One key way the CDN improves latency is by intelligently caching files on CDN edge servers located in various geographic regions. This new feature allows customers using Azure CDN standard from Verizon or Akamai to create rules to direct the CDN servers to override their default caching behavior.","og_url":"https:\/\/azure.microsoft.com\/en-us\/blog\/cdn-caching-rules\/","og_site_name":"Microsoft Azure Blog","article_publisher":"https:\/\/www.facebook.com\/microsoftazure","article_published_time":"2017-12-06T00:00:00+00:00","article_modified_time":"2025-06-27T09:54:42+00:00","author":"Richard Li","twitter_card":"summary_large_image","twitter_creator":"@azure","twitter_site":"@azure","twitter_misc":{"Written by":"Richard Li","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/cdn-caching-rules\/#article","isPartOf":{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/cdn-caching-rules\/"},"author":[{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/author\/richard-li\/","@type":"Person","@name":"Richard Li"}],"headline":"Control how your files are cached on Azure CDN using caching rules","datePublished":"2017-12-06T00:00:00+00:00","dateModified":"2025-06-27T09:54:42+00:00","mainEntityOfPage":{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/cdn-caching-rules\/"},"wordCount":253,"commentCount":0,"publisher":{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/#organization"},"articleSection":["Networking"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/azure.microsoft.com\/en-us\/blog\/cdn-caching-rules\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/cdn-caching-rules\/","url":"https:\/\/azure.microsoft.com\/en-us\/blog\/cdn-caching-rules\/","name":"Control how your files are cached on Azure CDN using caching rules | Microsoft Azure Blog","isPartOf":{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/#website"},"datePublished":"2017-12-06T00:00:00+00:00","dateModified":"2025-06-27T09:54:42+00:00","description":"Content Delivery Networks (CDN) help bring your content closer to your users all over the world. One key way the CDN improves latency is by intelligently caching files on CDN edge servers located in various geographic regions. This new feature allows customers using Azure CDN standard from Verizon or Akamai to create rules to direct the CDN servers to override their default caching behavior.","breadcrumb":{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/cdn-caching-rules\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/azure.microsoft.com\/en-us\/blog\/cdn-caching-rules\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/cdn-caching-rules\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog home","item":"https:\/\/azure.microsoft.com\/en-us\/blog\/"},{"@type":"ListItem","position":2,"name":"Networking","item":"https:\/\/azure.microsoft.com\/en-us\/blog\/category\/networking\/"},{"@type":"ListItem","position":3,"name":"Control how your files are cached on Azure CDN using caching rules"}]},{"@type":"WebSite","@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/#website","url":"https:\/\/azure.microsoft.com\/en-us\/blog\/","name":"Microsoft Azure Blog","description":"Get the latest Azure news, updates, and announcements from the Azure blog. From product updates to hot topics, hear from the Azure experts.","publisher":{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/azure.microsoft.com\/en-us\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/#organization","name":"Microsoft Azure Blog","url":"https:\/\/azure.microsoft.com\/en-us\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2024\/06\/microsoft_logo.webp","contentUrl":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2024\/06\/microsoft_logo.webp","width":512,"height":512,"caption":"Microsoft Azure Blog"},"image":{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/microsoftazure","https:\/\/x.com\/azure","https:\/\/www.instagram.com\/microsoftdeveloper\/","https:\/\/www.linkedin.com\/company\/16188386","https:\/\/www.youtube.com\/user\/windowsazure"]},{"@type":"Person","@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/#\/schema\/person\/c702e5edd662b328b49b7e1180cab117","name":"shakir","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/9342c7c05bb16548741bc5cd3a3e3b7ee0c8e746844ad2cc582db5beb5514c6f?s=96&d=mm&r=g7664e653ea371ce16eaf75e9fa8952c4","url":"https:\/\/secure.gravatar.com\/avatar\/9342c7c05bb16548741bc5cd3a3e3b7ee0c8e746844ad2cc582db5beb5514c6f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/9342c7c05bb16548741bc5cd3a3e3b7ee0c8e746844ad2cc582db5beb5514c6f?s=96&d=mm&r=g","caption":"shakir"},"sameAs":["https:\/\/azure.microsoft.com"],"url":"https:\/\/azure.microsoft.com\/en-us\/blog\/author\/shakir\/"}]}},"msxcm_display_generated_audio":false,"msxcm_animated_featured_image":null,"distributor_meta":false,"distributor_terms":false,"distributor_media":false,"distributor_original_site_name":"Microsoft Azure Blog","distributor_original_site_url":"https:\/\/azure.microsoft.com\/en-us\/blog","push-errors":false,"_links":{"self":[{"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/posts\/3219","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/comments?post=3219"}],"version-history":[{"count":1,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/posts\/3219\/revisions"}],"predecessor-version":[{"id":44016,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/posts\/3219\/revisions\/44016"}],"wp:attachment":[{"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/media?parent=3219"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/categories?post=3219"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/tags?post=3219"},{"taxonomy":"audience","embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/audience?post=3219"},{"taxonomy":"content-type","embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/content-type?post=3219"},{"taxonomy":"product","embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/product?post=3219"},{"taxonomy":"tech-community","embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/tech-community?post=3219"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/topic?post=3219"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/coauthors?post=3219"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}