1,使用阿里云OSS对象存储使用普通后缀模式,并且开启cdn每次请求都是直接从源站拉取资源,必须设置(目前处于内测版本)在原图上做处理(提交工单开启)
https://help.aliyun.com/document_detail/194301.html
2,开启后,配置:
- oss开启传输加速
- DCDN 配置源站域名为加速域名
- DCDN配置动静态加速规则-动态加速,配置静态文件类型
3,对于网站缓存处理配置:
加速网站:
- cdn设置原点信息,设置服务器IP或者域名,相应端口 就可以把服务器资源缓存到cdn
- 服务器不缓存,设置入口页面强制不缓存,比如:
location = /index.html {
add_header Cache-Control "private, no-store, no-cache, must-revalidate, proxy-revalidate";
}