[WordPress] 外掛分享: StaticDelivr: Free CDN, Image Optimization & Speed

前言介紹

  • 這款 WordPress 外掛「StaticDelivr: Free CDN, Image Optimization & Speed」是 2024-12-30 上架。
  • 目前尚無安裝啟用數,是個很新的外掛。如有要安裝使用,建議多測試確保功能沒問題!
  • 上一次更新是 2026-01-27,距離現在已有 30 天。
  • 外掛最低要求 WordPress 5.8 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 7.4 以上。
  • 有 2 人給過評分。
  • 論壇上目前有 1 個提問,問題解答率 100% ,不低,算是個很有心解決問題的開發者團隊了!

外掛協作開發者

coozywana |

外掛標籤

cdn | GDPR | cache | speed | image optimization |

內容簡介

**總結:**

StaticDelivr CDN 是一個輕量且強大的外掛程式,旨在優化您的 WordPress 網站效能。透過將主題、外掛和核心檔案資源的 URL 重寫為 StaticDelivr CDN,該外掛確保更快的載入時間、降低伺服器負載,提供更好的使用者體驗。

**問題與答案:**

- 如何使外掛自動提升效能?
- 自動 URL 重寫:自動將主題、外掛和 WordPress 本身的樣式、腳本和核心檔案的 URL 重寫為使用 StaticDelivr CDN。

- 如何開啟或關閉功能?
- 簡單設定:透過外掛設定頁面中的簡易切換,啟用或停用功能。

- 這個外掛是否與所有 WordPress 主題和外掛相容?
- 相容性:與所有正確排入資產的 WordPress 主題和外掛無縫配合運作。

- StaticDelivr CDN 如何提供改善的效能?
- 改進的效能:從 StaticDelivr CDN 提供資產,實現極快的載入速度和優化的使用者體驗。

- 這個外掛是否只支援單一 CDN?
- 多 CDN 支援:利用多個 CDN 以確保最佳可用性和效能。

- 這個外掛是否收費?
- 免費且開源:透過提供對高效快取服務免費存取,支持開源社群。

- StaticDelivr CDN 如何提供更快的交付?
- 全球分佈:從全球分佈的網路提供資產,減少延遲並改善載入時間。

- 使用 StaticDelivr CDN 可以節省哪些成本?
- 重要的頻寬節省:通過將資產交付外包給 StaticDelivr,顯著降低您網站的頻寬使用量和請求數量。

- 該外掛支援哪些熱門平台?
- 對流行平台的支援:輕鬆與 npm、GitHub、WordPress 和 Google Fonts 整合。

- 是否需要進行特定設置?
- 無需設定:自動以最少設置便可強化您網站的效能。

- 這個外掛的授權是什麼?
- 授權:該外掛程式符合 GPLv2 或更高授權。請參閱授權 URI 以瞭解詳情。

原文外掛簡介

StaticDelivr CDN is a lightweight and powerful plugin designed to improve your WordPress site’s performance. By rewriting theme, plugin, core file resource URLs, optimizing images, and proxying Google Fonts through the StaticDelivr CDN, the plugin ensures faster loading times, reduced server load, better privacy, and an improved user experience.
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.
Key Features

Smart Asset Detection: Automatically detects which themes and plugins are from wordpress.org and only serves those via CDN. Custom themes and plugins are served locally. No configuration needed!
Failure Memory System: If a CDN resource fails to load, the plugin remembers and automatically serves it locally for 24 hours. No more repeated failures!
Automatic URL Rewriting: Automatically rewrites URLs of enqueued styles, scripts, and core files for themes, plugins, and WordPress itself to use the StaticDelivr CDN.
Image Optimization: Automatically optimizes images with compression and modern format conversion (WebP, AVIF). Turn 2MB images into 20KB without quality loss!
Google Fonts Privacy Proxy: Serve Google Fonts without tracking (GDPR compliant). A drop-in replacement that strips all user-identifying data and tracking cookies.
Automatic Fallback: If a CDN asset fails to load, the plugin automatically falls back to your origin server, ensuring your site never breaks.
Localhost Detection: Automatically detects development environments and serves images locally when CDN cannot reach them.
Child Theme Support: Intelligently handles child themes by checking parent theme availability on wordpress.org.
Separate Controls: Enable or disable assets (CSS/JS), image optimization, and Google Fonts proxy independently.
Quality & Format Settings: Customize image compression quality and output format.
Verification Dashboard: See exactly which assets are served via CDN vs locally in the admin panel.
Failure Statistics: View which resources have failed and are being served locally, with option to clear cache.
Compatibility: Works seamlessly with all WordPress themes and plugins — both from wordpress.org and custom/premium sources.
Improved Performance: Delivers assets from the StaticDelivr CDN for lightning-fast loading and enhanced user experience.
Multi-CDN Support: Leverages multiple CDNs to ensure optimal availability and performance.
Free and Open Source: Supports the open-source community by offering free access to a high-performance CDN.

Use of Third-Party Service
This plugin relies on the StaticDelivr CDN to deliver static assets, including WordPress themes, plugins, core files, optimized images, and Google Fonts. The CDN uses the public WordPress SVN repository to fetch theme/plugin files and serves them through a globally distributed network for faster performance and reduced bandwidth costs.

Service Terms of Use: StaticDelivr Terms
Privacy Policy: StaticDelivr Privacy Policy

How It Works
StaticDelivr CDN rewrites your WordPress asset URLs to deliver them through its high-performance network:
Smart Asset Detection
The plugin automatically verifies which themes and plugins exist on wordpress.org:

WordPress.org Assets: Served via StaticDelivr CDN for maximum performance
Custom/Premium Assets: Automatically detected and served from your server
Child Themes: Parent theme is checked. If the parent is on wordpress.org, assets load via CDN

This means the plugin “just works” with any combination of wordpress.org and custom themes/plugins!
Failure Memory System (New in 1.7.0!)
The plugin learns from CDN failures and automatically adapts:

First failure: Fallback fires, failure is recorded
Second failure: Resource is blocked from CDN for 24 hours
Auto-recovery: After 24 hours, resources are retried automatically
Manual reset: Clear the failure cache anytime from settings

This ensures that problematic resources (Cloudflare-protected images, auth-gated content, etc.) are handled gracefully without repeated failures.
Assets (CSS & JavaScript)

Original URL: `https://example.com/wp-content/themes/theme-name/version/style.css`
Rewritten CDN URL: `https://cdn.staticdelivr.com/wp/themes/theme-name/version/style.css`

This process applies to themes, plugins, and core files:

Themes:
Original: `https://example.com/wp-content/themes/twentytwentythree/1.0/style.css`
CDN: `https://cdn.staticdelivr.com/wp/themes/twentytwentythree/1.0/style.css`

Plugins:
Original: `https://example.com/wp-content/plugins/woocommerce/assets/js/frontend/woocommerce.min.js`
CDN: `https://cdn.staticdelivr.com/wp/plugins/woocommerce/tags/9.3.3/assets/js/frontend/woocommerce.min.js`

Core Files:
Original: `https://example.com/wp-includes/js/jquery/jquery.min.js`
CDN: `https://cdn.staticdelivr.com/wp/core/tags/6.9/wp-includes/js/jquery/jquery.min.js`

Images

Original: `https://example.com/wp-content/uploads/2024/01/photo.jpg` (2MB)
Optimized CDN: `https://cdn.staticdelivr.com/img/images?url=https://example.com/wp-content/uploads/2024/01/photo.jpg&q=80&format=webp` (~20KB)

Google Fonts

Original CSS: `https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap`

Privacy Proxy: `https://cdn.staticdelivr.com/gfonts/css2?family=Inter:wght@400;500;600&display=swap`

Original Font Files: `https://fonts.gstatic.com/s/inter/v20/example.woff2`

Privacy Proxy: `https://cdn.staticdelivr.com/gstatic-fonts/s/inter/v20/example.woff2`

This ensures faster delivery through StaticDelivr’s globally distributed network while protecting user privacy.
Why Use StaticDelivr?

Zero Configuration: Smart detection means it works out of the box with any theme/plugin combination.
Self-Healing: Failure memory system automatically adapts to problematic resources.
Global Distribution: StaticDelivr serves your assets from a globally distributed network, reducing latency and improving load times.
Massive Bandwidth Savings: Offload heavy image delivery to StaticDelivr. Optimized images can be 10-100x smaller!
Privacy-First Google Fonts: Serve Google Fonts without tracking cookies — GDPR compliant without additional cookie banners.
Works with Custom Themes: Unlike other CDN plugins, StaticDelivr automatically detects custom themes/plugins and serves them locally.
Browser Caching Benefits: As an open-source CDN used by many sites, assets served by StaticDelivr are likely already cached in users’ browsers. This enables faster load times when visiting multiple sites using StaticDelivr.
Significant Bandwidth Savings: Reduces your site’s bandwidth usage and number of requests significantly by offloading asset delivery to StaticDelivr.
Optimized Performance: Ensures assets are delivered quickly, no matter where your users are located.
Comprehensive WordPress Support: Includes support for delivering core WordPress files (e.g., those in the `wp-includes` directory) to enhance site speed and reliability.
Support for Popular Platforms: Easily integrates with npm, GitHub, WordPress, and Google Fonts.
Minimal Configuration: Just enable the features you want and the plugin handles the rest.
Development Friendly: Automatically detects localhost and development environments.

Translations
StaticDelivr CDN is available in the following languages:

English (default)
Spanish (Español) – es_ES, es_MX
French (Français) – fr_FR
German (Deutsch) – de_DE
Italian (Italiano) – it_IT
Portuguese Brazil (Português) – pt_BR
Dutch (Nederlands) – nl_NL
Japanese (日本語) – ja
Chinese Simplified (简体中文) – zh_CN
Chinese Traditional (繁體中文) – zh_TW
Russian (Русский) – ru_RU
Arabic (العربية) – ar
Korean (한국어) – ko_KR
Turkish (Türkçe) – tr_TR
Polish (Polski) – pl_PL
Ukrainian (Українська) – uk
Czech (Čeština) – cs_CZ
Hungarian (Magyar) – hu_HU
Romanian (Română) – ro_RO
Swedish (Svenska) – sv_SE
Danish (Dansk) – da_DK
Finnish (Suomi) – fi
Hebrew (עברית) – he_IL
Persian (فارسی) – fa_IR
Hindi (हिन्दी) – hi
Vietnamese (Tiếng Việt) – vi
Thai (ไทย) – th
Indonesian (Bahasa Indonesia) – id_ID
Urdu (اردو) – ur

Want to help translate StaticDelivr CDN into your language? Visit translate.wordpress.org to contribute!
License
This plugin is licensed under the GPLv2 or later. See License URI for details.

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「StaticDelivr: Free CDN, Image Optimization & Speed」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.0.0 | 1.1.0 | 1.2.0 | 1.2.1 | 1.3.0 | 1.3.1 | 1.4.0 | 1.5.0 | 1.6.0 | 1.7.0 | 1.7.1 | 2.0.0 | 2.1.0 | 2.2.0 | 2.2.1 | 2.2.2 | 2.3.0 | 2.4.0 | 2.4.1 | 2.5.0 | 2.5.1 | 2.5.2 | trunk | 0.2.2.0 |

延伸相關外掛(你可能也想知道)

文章
Filter
Mastodon