{"id":4821,"date":"2021-05-28T18:15:12","date_gmt":"2021-05-28T18:15:12","guid":{"rendered":"https:\/\/www.s-sols.com\/?post_type=doc&#038;p=4821"},"modified":"2024-11-13T11:48:19","modified_gmt":"2024-11-13T11:48:19","slug":"settings-cdn-accel","status":"publish","type":"doc","link":"https:\/\/www.s-sols.com\/docs\/wordpress\/accelerator\/settings-accel\/settings-cdn-accel","title":{"rendered":"CDN settings Accelerator for WordPress"},"content":{"rendered":"<p style=\"text-align:justify\">\n  Content Delivery Network (CDN) &#8211; geographically distributed network infrastructure that optimizes the delivery and distribution of content to end-users. Its use contributes to an increase in the download speed of users of audio, video, software, game, and other types of content.\n<\/p>\n<p style=\"text-align:justify\">\n  CDN settings is an ordered list of CDN servers with different settings. During content optimization, all URLs are processed and the first CDN that matches the order is selected from this list.\n<\/p>\n<p style=\"text-align:justify\">\n  Several CDNs allow having better balance and saving money. E.g. one CDN can be used only for JPG, another for PNG, and a third for JS and CSS files.\n<\/p>\n<p style=\"text-align:justify\">\n  By default, one element with an empty address is added for the convenience of specifying one server.\n<\/p>\n<p style=\"text-align:center\">\n  <img decoding=\"async\" src=\"\/data\/content\/doc\/wordpress\/accelerator\/settings-cdn-accel\/settings-cdn-en.png\" alt=\"settings-CDN\" title=\"settings-CDN - CDN settings\" \/>\n<\/p>\n<p>\n  Settings for each item:\n<\/p>\n<ul>\n<li><a id=\"enabled\"><\/a><strong>Enabled<\/strong>\n<p style=\"text-align:left\">\n      Enables current CDN server. If the <a href=\"#address\">address<\/a> is empty, the current item won&#8217;t be used.<a id=\"_Hlk73097901\"><\/a>\n    <\/p>\n<\/li>\n<li><a id=\"address\"><\/a><strong>Apply to scripts<\/strong>\n<p style=\"text-align:left\"><span style=\"font-size:12pt\">An attempt will be made to replace <\/span>URL-like strings<span style=\"font-size:12pt\"> <\/span>in scripts.\n    <\/p>\n<\/li>\n<li><strong>Address<\/strong>\n<p style=\"text-align:left\">\n      Address of CDN server. All internal site addresses that match with below <a href=\"#types\">types<\/a>, <a href=\"#includes\">inclusion<\/a>, and <a href=\"#excludes\">exclusion<\/a> criteria will be prepended with this one.<a id=\"_Hlk73097925\"><\/a> E.g. if the CDN address is https:\/\/cdn.ext.com and the file\u2019s URL is https:\/\/mysite.com\/uploads\/picture1.jpg, then the final URL will be https:\/\/cdn.ext.com\/uploads\/picture1.jpg.\n    <\/p>\n<\/li>\n<li><a id=\"types\"><\/a><strong>Types<\/strong>\n<p style=\"text-align:left\">\n      Only files having these extensions will be adjusted. It can be added multiple extensions at once via separating by commas.\n    <\/p>\n<\/li>\n<li><a id=\"includes\"><\/a><strong>Includes<\/strong>\n<p style=\"text-align:left\">\n      Only files having these strings in their paths will be adjusted. It can be added multiple strings at once via separating by commas.\n    <\/p>\n<\/li>\n<li><a id=\"excludes\"><\/a><strong>Excludes<\/strong>\n<p style=\"text-align:left\">\n      Files having these strings in their paths will not be adjusted. It can be added multiple strings at once via separating by commas.\n    <\/p>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Content Delivery Network (CDN) &#8211; geographically distributed network infrastructure that optimizes the delivery and distribution of content to end-users. Its use contributes to an increase in the download speed of users of audio, video, software, game, and other types of content. CDN settings is an ordered list of CDN servers with different settings. During content&#8230;<\/p>\n","protected":false},"author":18,"featured_media":0,"parent":4812,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"rank_math_lock_modified_date":false},"categories":[816],"tags":[],"class_list":["post-4821","doc","type-doc","status-publish","hentry","category-accelerator"],"_links":{"self":[{"href":"https:\/\/www.s-sols.com\/api\/wp\/v2\/doc\/4821","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.s-sols.com\/api\/wp\/v2\/doc"}],"about":[{"href":"https:\/\/www.s-sols.com\/api\/wp\/v2\/types\/doc"}],"author":[{"embeddable":true,"href":"https:\/\/www.s-sols.com\/api\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/www.s-sols.com\/api\/wp\/v2\/comments?post=4821"}],"up":[{"embeddable":true,"href":"https:\/\/www.s-sols.com\/api\/wp\/v2\/doc\/4812"}],"wp:attachment":[{"href":"https:\/\/www.s-sols.com\/api\/wp\/v2\/media?parent=4821"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.s-sols.com\/api\/wp\/v2\/categories?post=4821"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.s-sols.com\/api\/wp\/v2\/tags?post=4821"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}