Prometheus
Prometheus copied to clipboard
Ghost 3.0 下,升级最新的 workbox
最新版可以缓存 Google 字体了。
目前功能大体迁移完成,95%。不过还有一些小毛病需要处理:
-
- Current page does not respond with a 200 when offline If you're building a Progressive Web App, consider using a service worker so that your app can work offline. Learn more.
-
- start_url does not respond with a 200 when offline. Timed out waiting for start_url (https://halfrost.com/) to respond.
1 和 2 其实是一个问题。都是因为 PWA 没有缓存住 doc 导致。但是如果缓存了 doc ,会出现一个 only-if-cache 的 bug. 这里再找找解决办法吧。原来的 server-worker 是自己写了一段逻辑避开了此处 bug.
目前
JSON(https://halfrost.com/manifest.json), JS(https://busuanzi.ibruce.info/busuanzi?jsonpCallback=BusuanziCallback_82369163194), HTML(https://halfrost.com/)
这 3 个还没有被完美的缓存住。另外 https://www.google-analytics.com/ 这个请求是统计的,可以不用管了。
暂时主要还是由于上面那个 bug 没有修复。导致没法切回来,切回来评分和体验都不如之前。所以这个 bug 修复之前,暂时不切到 workbox。这个分支先放着。