【发布时间】:2019-12-06 05:35:21
【问题描述】:
我正在使用 Amazon CloudFront 为我的 WordPress 网站设置 CDN。我已经成功设置了wp-uploads 文件夹。
现在,当我在 GTmetrix 上检查我的网站性能时,我看到以下类型的文件需要从 CDN 提供:
https://mysite/wp-includes/*/*.js?ver=1.2.3https://mysite/wp-content/plugins/some-plugin/*/*.js?ver=1.2.3https://mysite/wp-content/themes/my-theme/*.js?ver=1.2.3https://mysite/wp-content/cache/busting/something/*js
现在我需要知道将我的完整插件wp-includes、wp-content/plugins、wp-content/themes/my-theme 文件夹上传到 S3 存储桶(我的 CloudFront 源)是否是一件好事?
更一般地,在为您的 WordPress 站点设置 CDN 时,我应该将哪些文件夹上传到我的 CloudFront 源?
我的目标是从 CDN 提供所有这些文件。
【问题讨论】:
标签: wordpress amazon-cloudfront cdn