Coder Social home page Coder Social logo

emptydreams / swpp-backends Goto Github PK

View Code? Open in Web Editor NEW
17.0 1.0 1.0 516 KB

Service Worker Plus Plus 后端的仓库。

Home Page: https://kmar.top/posts/73014407/

License: GNU Affero General Public License v3.0

TypeScript 100.00%
npm serviceworker service-worker sw

swpp-backends's Introduction

swpp

欢迎使用 SwppBackends

本分支是 swpp 的 V3 分支,V3 将重构包括 sw.js 在内的所有代码,目前仍在开发中。

swpp-backends's People

Contributors

emptydreams avatar therehello avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  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 防盗链,但考虑到某些特定场景和需求,增加这一配置选项可能会更加灵活和方便。这只是一个不成熟的小小建议,大佬如果能增加最好。

现代化配置文件命名与加载

当前配置文件的加载方式为 CJS Require,并且需要按照 CJS 的格式书写,建议统一使用纯 ESM 的方式加载,并按照形如 swpp.config.ts 的格式为配置文件命名(可以使用 unjs/c12, so1ve/yajuu 等)。

此时可以像其他工具一样导出一个辅助函数 defineConfig,为用户提供完备的类型提示。

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.