平时在修改了代码时,使用了jsdelivr加速的静态资源,所以照常更新下github上的资源,但是github上查看已经上传成功了,jsdelivr访问的依然是之前的资源,说白了就是缓存的问题。即使本地浏览器端的缓存已经清理,也会因为CDN周围的节点没有同步数据而导致用户端未能及时更新。文章源自玩技e族-https://www.playezu.com/502176.html
参看文章:如何上传使用免费jsdelivr加速CDN点我前往查看>>>文章源自玩技e族-https://www.playezu.com/502176.html
缓存刷新
把原来访问的链接文章源自玩技e族-https://www.playezu.com/502176.html
https://cdn.jsdelivr.net/...
改为:文章源自玩技e族-https://www.playezu.com/502176.html
https://purge.jsdelivr.net/...
访问资源就会进行刷新,然后页面会返回刷新信息:
{ "id": "zi0NlCLGlQSqRRly", "status": "finished", "timestamp": "2022-12-17T16:14:56.581Z", "paths": { "/gh/testwhite/jsDelivr-cdn/wp-content/themes/ceomax/css/bootstrap3.3.7.min.css": { "throttled": false, "providers": { "CF": true, "FY": true, "GC": true } } } }文章源自玩技e族-https://www.playezu.com/502176.html文章源自玩技e族-https://www.playezu.com/502176.html
玩技站长微信
添加好友自动发送入群邀请
rainbow-shownow
玩技官方公众号
官方微信公众号
PLAYEZU
评论