{"id":416678,"date":"2024-12-31T08:00:00","date_gmt":"2024-12-31T08:00:00","guid":{"rendered":"https:\/\/www.weixiaoduo.com\/plugins\/staticdelivr\/"},"modified":"2024-12-31T17:29:00","modified_gmt":"2024-12-31T17:29:00","slug":"staticdelivr","status":"publish","type":"post","link":"https:\/\/www.weixiaoduo.com\/plugins\/staticdelivr\/","title":{"rendered":"StaticDelivr CDN"},"content":{"rendered":"<p><strong>StaticDelivr CDN<\/strong> is a lightweight and powerful plugin designed to improve your WordPress site\u2019s performance. By rewriting theme, plugin, and core file resource URLs to use the <a href=\"https:\/\/staticdelivr.com\" rel=\"nofollow ugc\">StaticDelivr CDN<\/a>, the plugin ensures faster loading times, reduced server load, and a better user experience.<\/p>\n<p>StaticDelivr is a global content delivery network (CDN) that supports delivering assets from various platforms like npm, GitHub, and WordPress. By leveraging geographically distributed servers, StaticDelivr optimizes the delivery of your static assets such as CSS, JavaScript, images, and fonts.<\/p>\n<h3>Key Features<\/h3>\n<ul>\n<li><strong>Automatic URL Rewriting<\/strong>: Automatically rewrites URLs of enqueued styles, scripts, and core files for themes, plugins, and WordPress itself to use the StaticDelivr CDN.<\/li>\n<li><strong>Simple Settings<\/strong>: Enable or disable the functionality with a simple toggle in the plugin settings page.<\/li>\n<li><strong>Compatibility<\/strong>: Works seamlessly with all WordPress themes and plugins that correctly enqueue their assets.<\/li>\n<li><strong>Improved Performance<\/strong>: Delivers assets from the StaticDelivr CDN for lightning-fast loading and enhanced user experience.<\/li>\n<li><strong>Multi-CDN Support<\/strong>: Leverages multiple CDNs to ensure optimal availability and performance.<\/li>\n<li><strong>Free and Open Source<\/strong>: Supports the open-source community by offering free access to a high-performance CDN.<\/li>\n<\/ul>\n<h3>Use of Third-Party Service<\/h3>\n<p>This plugin relies on the <a href=\"https:\/\/staticdelivr.com\" rel=\"nofollow ugc\">StaticDelivr CDN<\/a> to deliver static assets, including WordPress themes, plugins, and core files. The CDN uses the public WordPress SVN repository to fetch these files and serves them through a globally distributed network for faster performance and reduced bandwidth costs.<\/p>\n<ul>\n<li><strong>Service Terms of Use<\/strong>: <a href=\"https:\/\/staticdelivr.com\/legal\/terms-of-service\" rel=\"nofollow ugc\">StaticDelivr Terms<\/a><\/li>\n<li><strong>Privacy Policy<\/strong>: <a href=\"https:\/\/staticdelivr.com\/legal\/privacy-policy\" rel=\"nofollow ugc\">StaticDelivr Privacy Policy<\/a><\/li>\n<\/ul>\n<h3>How It Works<\/h3>\n<p><strong>StaticDelivr CDN<\/strong> rewrites your WordPress asset URLs to deliver them through its high-performance network:<\/p>\n<ul>\n<li><strong>Original URL<\/strong>: <code>https:\/\/example.com\/wp-content\/themes\/theme-name\/version\/style.css<\/code><\/li>\n<li><strong>Rewritten CDN URL<\/strong>: <code>https:\/\/cdn.staticdelivr.com\/wp\/themes\/theme-name\/version\/style.css<\/code><\/li>\n<\/ul>\n<p>This process applies to themes, plugins, and core files:<\/p>\n<ul>\n<li>\n<p><strong>Themes<\/strong>:<br \/>\nOriginal: <code>https:\/\/example.com\/wp-content\/themes\/twentytwentythree\/1.0\/style.css<\/code><br \/>\nCDN: <code>https:\/\/cdn.staticdelivr.com\/wp\/themes\/twentytwentythree\/1.0\/style.css<\/code><\/p>\n<\/li>\n<li>\n<p><strong>Plugins<\/strong>:<br \/>\nOriginal: <code>https:\/\/example.com\/wp-content\/plugins\/woocommerce\/assets\/js\/frontend\/woocommerce.min.js<\/code><br \/>\nCDN: <code>https:\/\/cdn.staticdelivr.com\/wp\/plugins\/woocommerce\/tags\/9.3.3\/assets\/js\/frontend\/woocommerce.min.js<\/code><\/p>\n<\/li>\n<li>\n<p><strong>Core Files<\/strong>:<br \/>\nOriginal: <code>https:\/\/example.com\/wp-includes\/js\/jquery\/jquery.min.js<\/code><br \/>\nCDN: <code>https:\/\/cdn.staticdelivr.com\/wp\/core\/trunk\/wp-includes\/js\/jquery\/jquery.min.js<\/code><\/p>\n<\/li>\n<\/ul>\n<p>This ensures faster delivery through StaticDelivr\u2019s globally distributed network.<\/p>\n<h3>Why Use StaticDelivr?<\/h3>\n<ul>\n<li><strong>Global Distribution<\/strong>: StaticDelivr serves your assets from a globally distributed network, reducing latency and improving load times.<\/li>\n<li><strong>Browser Caching Benefits<\/strong>: As an open-source CDN used by many sites, assets served by StaticDelivr are likely already cached in users\u2019 browsers. This enables faster load times when visiting multiple sites using StaticDelivr.<\/li>\n<li><strong>Significant Bandwidth Savings<\/strong>: Reduces your site\u2019s bandwidth usage and number of requests significantly by offloading asset delivery to StaticDelivr.<\/li>\n<li><strong>Optimized Performance<\/strong>: Ensures assets are delivered quickly, no matter where your users are located.<\/li>\n<li><strong>Comprehensive WordPress Support<\/strong>: Includes support for delivering core WordPress files (e.g., those in the <code>wp-includes<\/code> directory) to enhance site speed and reliability.<\/li>\n<li><strong>Support for Popular Platforms<\/strong>: Easily integrates with npm, GitHub, WordPress, and Google Fonts.<\/li>\n<li><strong>No Configuration Required<\/strong>: Automatically enhances your site\u2019s performance with minimal setup.<\/li>\n<\/ul>\n<h3>License<\/h3>\n<p>This plugin is licensed under the GPLv2 or later. See <a href=\"https:\/\/www.gnu.org\/licenses\/gpl-2.0.html\" rel=\"nofollow ugc\">License URI<\/a> for details.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Enhance your WordPress site\u2019s performance by rewriting URLs to use the StaticDelivr CDN.<\/p>\n","protected":false},"author":65,"featured_media":416689,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"StaticDelivr CDN - \u8587\u6653\u6735\u63d2\u4ef6\u76ee\u5f55","description":"Enhance your WordPress site\u2019s performance by rewriting URLs to use the StaticDelivr CDN."},"footnotes":""},"categories":[1],"tags":[514,3777,517,64,52202],"class_list":["post-416678","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-cdn","tag-free-cdn","tag-optimization","tag-performance","tag-wordpress-cdn"],"_links":{"self":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/416678","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/users\/65"}],"replies":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/comments?post=416678"}],"version-history":[{"count":0,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/416678\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media\/416689"}],"wp:attachment":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media?parent=416678"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/categories?post=416678"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/tags?post=416678"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}