平台开发中,欢迎参与测试。你可以在 QQ群:1046115671 中与我们交流,或是直接在社区发帖

CDN Enabler

帮助改进此插件的 简体中文 翻译~ 同时,你可以通过安装 WP-China-Yes 插件,并切换应用市场为“LitePress 应用市场”来接收翻译推送。

CDN Enabler is a simple and easy to use WordPress plugin that rewrites URLs, such as those for CSS, JavaScript, and images, to be served by a content delivery network (CDN). This helps improve site performance, reliability, and scalability by offloading the majority of traffic to a CDN.

产品特点

  • Fast and efficient rewrite engine
  • Manual and WP-CLI cache purging (when a KeyCDN account is connected)
  • Include URLs in the rewrite by file extensions
  • Exclude URLs in the rewrite by strings
  • WordPress multisite network support
  • WordPress REST API support
  • Works perfectly with Cache Enabler and the majority of third party plugins

How does the rewriting work?

CDN Enabler captures page contents and rewrites URLs to be served by the designated CDN.

程序文档

Want to help?

Maintainer

屏幕截图

2.0.4

  • Update configuration validation to include the Site Address (URL) as an HTTP Referer (#42)
  • Update URL matcher in rewriter to match URLs that are in escaped JSON format (#41)
  • Update CDN hostname validation to trim surrounding whitespace characters (#40)

2.0.3

  • Update output buffer handling (#29)
  • Fix purge cache request handling (#31)

2.0.2

  • Update URL matcher in rewriter (#28)
  • Update full URL rewrite (#28)

2.0.1

  • Update URL matcher in rewriter (#25)
  • Update settings conversion (#26)
  • Add cdn_enabler_exclude_admin, cdn_enabler_contents_before_rewrite, and cdn_enabler_contents_after_rewrite filter hooks (#27)
  • Fix configuration validation for installations in a subdirectory (#27)
  • Remove cdn_enabler_page_contents_before_rewrite filter hook in favor of replacement (#27)

2.0.0

  • 更新输出缓冲区的时间,使其更早在 setup_theme 钩子而不是 template_redirect 钩子上开始 (#23)
  • Update settings (#23)
  • Update requirements check (#23)
  • Update purge CDN cache handling (#23)
  • Add new rewrite engine (#23)
  • Add WP-CLI cache purging (#23)
  • Add configuration validation (#23)
  • Add cdn_enabler_user_can_purge_cache, cdn_enabler_page_contents_before_rewrite, cdn_enabler_bypass_rewrite, cdn_enabler_site_hostnames, and cdn_enabler_rewrite_relative_urls filter hooks (#23)
  • Fix requirement notices being shown to all users (#23)
  • Fix rewriting limitations (#23)
  • Deprecate user_can_clear_cache filter hook in favor of replacement (#23)

1.0.9

  • 重写过滤 the_content 的 URL,以便在 REST API 中呈现的 HTML 使用 CDN

1.0.8

  • 清除 CDN 重定向到管理控制台,以避免出现错误消息
  • 更好的错误信息
  • 设置 KeyCDN API 凭据时不显示烦人通知

1.0.7

  • 小错误修复(按引用传递)

1.0.6

  • 修正了一些小错误
  • 改进的 CDN 清除

1.0.5

  • 多协议 CDN 重写
  • 通过 KeyCDN API 添加清除
  • 如果处于管理员预览模式,请勿重写
  • 如果已启用并且客户端通过 HTTP 连接,则重写为 HTTPS

1.0.4

  • 删除未使用的代码

1.0.3

  • 改进了目录和扩展名的排除

1.0.2

  • 从 siteurl 切换到本地(例如,为基石提供支持)

1.0.1

  • 第一个主要版本
  • 修复警告

0.0.1

  • 初版

评价

目前还没有评价

成为第一个“CDN Enabler” 的评价者