Giter VIP home page Giter VIP logo

swpp-backends's Introduction

swpp

欢迎使用 SwppBackends

swpp-backends(以下简称 swpp)插件的功能是为网站生成一个高度可用的 ServiceWorker(以下简称 SW),为网站优化二次加载、提供离线体验、提高可靠性,并为此附带了一些其它的功能。

swpp 的全拼为“Service Worker Plus Plus”(或“Service Worker++”),但是其与已有的插件“hexo-service-worker”并没有关系,插件中所有代码均为我个人开发,这一点请不要误解。

swpp 生成的 SW 与其它插件的对比:

swpp hexo-offline
本地缓存 ✔️ ✔️
缓存增量更新 ✔️
缓存过期时间 ✔️
缓存大小限制 ✔️
预缓存 1 ✔️
Request 篡改 ✔️
URL 竞速 ✔️
备用 URL ✔️
204 阻塞响应 ✔️
逃生门 ✔️
请求合并 ✔️
跨平台2 ✔️
高度自由 ✔️
更新 非常频繁 超过两年没有更新
  • ✔️:支持
  • ❌:不支持
  1. 预缓存可以在前端实现,SW 实现这个功能容易拖延注册时间
  2. 跨平台是指跨越框架(可在 NodeJS 平台中的任意框架下工作)

目前支持的平台:

平台 插件名 文档 作者
hexo hexo-swpp github 空梦

如果你为某一个平台做了适配,可以在 gh 上发布 issue 或者在文档页面发布评论~

文档:Swpp Backends 官方文档 | 山岳库博

swpp-backends's People

Contributors

emptydreams avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

yl2209

swpp-backends's Issues

提个小小的建议

能否增加一项关于请求头Referer 的配置呢,之前因为在CDN设置了Referer 防盗链,然后hexo swpp 一直 403。 经过确认测试确认是因为设置了Referer 。不过不是很重要,一般需要让别人可以连自己的网站都不会设置Referer 防盗链,但考虑到某些特定场景和需求,增加这一配置选项可能会更加灵活和方便。这只是一个不成熟的小小建议,大佬如果能增加最好。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.