KeJunMao / jekyll-theme-mdui

🍷A Jekyll theme based on MDUI
https://stoic-minsky-d7bb8b.netlify.app/
MIT License
171 stars 72 forks source link

无法转到cname #42

Closed Sunbertrs closed 5 years ago

Sunbertrs commented 5 years ago

I certify that I have first consulted (check all with "x")


I'm submitting a (check one with "x")


我最近注册了一个域名,叫做js.org,但是当我访问github.io时,能访问,不过看到的是最后一次在添加CNAME之前更新的内容。而不会跳转到js.org
初步判断是sw.js的问题

Rasphino commented 5 years ago

这应该是本地缓存造成的问题,可以尝试在github.io页面刷新,或者直接清除本地缓存

如果有更好的sw.js的实现,非常欢迎pr

Sunbertrs commented 5 years ago

额。。清了缓存,进去了还是老样子,只不过加载有点久

DavyVan commented 5 years ago

我也遇到过缓存问题,我干脆直接禁用了PWA,而且还需要在chrome浏览器中取消注册Service Worker才能真正清除缓存

Sunbertrs commented 5 years ago

谢谢。问题终于解决了,要把/_includes/component/sw.htmlregister字符改成unregister