Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ghost 3.0 下,升级最新的 workbox #44

Open
halfrost opened this issue Jul 30, 2020 · 2 comments
Open

Ghost 3.0 下,升级最新的 workbox #44

halfrost opened this issue Jul 30, 2020 · 2 comments
Labels
complete enhancement New feature or request

Comments

@halfrost
Copy link
Owner

最新版可以缓存 Google 字体了。

@halfrost
Copy link
Owner Author

halfrost commented Jul 30, 2020

目前功能大体迁移完成,95%。不过还有一些小毛病需要处理:

    1. 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.
    1. 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/ 这个请求是统计的,可以不用管了。

@halfrost
Copy link
Owner Author

暂时主要还是由于上面那个 bug 没有修复。导致没法切回来,切回来评分和体验都不如之前。所以这个 bug 修复之前,暂时不切到 workbox。这个分支先放着。

@halfrost halfrost added enhancement New feature or request complete labels Jul 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
complete enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant