6

博客已添加离线支持

 3 years ago
source link: https://blog.rxliuli.com/p/b2810c19/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
rxliuli blog

_

2020年5月17日 上午

197 字

2 分钟

本文最后更新于:2020年5月17日 上午

博客已使用 service-worker 技术对网站添加离线支持功能,具体实现不过是使用了 hexo-offline 插件,之后所有第一次访问过的页面之后便离线可用了,同时即便在线浏览仍然能更快的展示页面。
想要使用它的主要原因是吾辈的博客是静态的,意味着几乎所有的资源都可以通过 service-worker 缓存,以此提高网站的可用性。

注: Vue 官网 使用 hexo 构建,同时使用了该插件实现离线支持。

ServiceWorker


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK