Code Monkey home page Code Monkey logo

Comments (3)

EtherDream avatar EtherDream commented on May 13, 2024 1

现在用 NPM 命令检测文件是否发布过,应该更稳定一些:https://github.com/EtherDream/freecdn/blob/master/examples/free-host/npm-upload.sh

elemecdn 没加,第三方 CDN 往 list 里加一行就可以:

list="$list
$hash https://unpkg.com/$dst
$hash https://cdn.jsdelivr.net/npm/$dst
$hash https://npm.elemecdn.com/$dst
"

from freecdn.

EtherDream avatar EtherDream commented on May 13, 2024

上传脚本目前是通过访问 unpkg.com 检测文件是否已上传(根据 HEAD 请求是否返回 200 检测文件存在)。可能 unpkg.com 已回源成功,其他 jsdelivr 或 elemecdn 还没同步,出现 404。我打算改进下,直接用 npm 命令检测这个版本是否已发布,这样更准确些。

如果资源被 sw 拦截到,但仍然访问原始 url 而不是备用 url,可能是原始站点的权重更高一些,可以试试权重配置

from freecdn.

cxw620 avatar cxw620 commented on May 13, 2024

改天再试试, 先close issue了.

from freecdn.

Related Issues (18)

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.