简体   繁体   English

如何在wordpress插件的“ Litespeed Cache”中设置CDN?

[英]How to setup cdn in “Litespeed Cache” in wordpress plugin?

I have problem to setuping the cdn. 我在设置CDN时遇到问题。 how to setup the cdn with https protocol in Litespeed cache? 如何在Litespeed缓存中使用https协议设置CDN? Are the file in 文件在

/wp-content
important to move in directory cdn? 在目录cdn中移动很重要吗?

Are you referring to the CDN setup within the plugin itself? 您是指插件本身中的CDN设置吗? You don't need to specifically do anything with any directories, including /wp-content . 您无需对任何目录特别进行任何操作,包括/wp-content

Assuming you've already set up your CDN on the CDN's website, all you need to do to make it work with the LSCache plugin is to visit the LiteSpeed Cache > Settings > CDN tab, and configure a few options. 假设您已经在CDN的网站上设置了CDN,要使其与LSCache插件一起使用,您需要做的就是访问LiteSpeed缓存>设置> CDN选项卡,并配置一些选项。

Most notably, you need to let LSCache know your site's original URI, the CDN URL, and the types of static files your CDN will be responsible for serving. 最值得注意的是,您需要让LSCache知道站点的原始URI,CDN URL以及CDN将负责提供服务的静态文件的类型。 (Your CDN should only be serving static files, as LSCache is responsible for caching the dynamic content.) (您的CDN应该只提供静态文件,因为LSCache负责缓存动态内容。)

If you are using Cloudflare, you can disregard the above. 如果您使用的是Cloudflare,则可以忽略上述内容。 There is no need to do anything special in LSCache to make it work with Cloudflare. 无需在LSCache中执行任何特殊操作即可使其与Cloudflare一起使用。

There are detailed CDN configuration instructions on the LiteSpeed wiki , if you need more information. 如果需要更多信息,可以在LiteSpeed Wiki找到详细的CDN配置说明。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Wordpress / Woocommerce Litespeed 缓存插件不缓存主页(首页) - Wordpress / Woocommerce Litespeed cache plugin not caching Homepage (frontpage) 基于 WordPress 中的 LiteSpeed 缓存插件,使用 PHP 有条件地预加载图像 - Conditionally preloading images with PHP based on LiteSpeed cache plugin in WordPress 缓存问题、插件 Litespeed、服务器 Litespeed 和优化 - Problem with cache, plugin Litespeed, server Litespeed and optimization 如何在 litespeed WordPress 插件中创建自定义 Vary 组? - How to create custom Vary group in litespeed WordPress plugin? Wordpress 页面总是重新加载旧缓存 (LiteSpeed) - Wordpress Page always Reload Old Cache (LiteSpeed) 如何在 litespeed 上预加载缓存? - How do I preload cache on litespeed? Wordpress W3 Total Cache CDN 设置找不到 Cloudfront 分发端点 - Wordpress W3 Total Cache CDN setup cannot find Cloudfront distribution endpoint 如何在 Wordpress 插件中加载多个 css、js 和 CDN - How to load multiple css, js and CDN in Wordpress plugin 如何从CloudFront CDN提供WordPress插件文件(JS和CSS)? - How to serve WordPress plugin files (JS and CSS) from CloudFront CDN? 如何在Wordpress中设置jQuery Cookie插件? - How to setup jQuery cookie plugin in wordpress?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM