討論 » Greasy Fork 回應

jsDelivr GitHub tag/release

§
發表於:2022-01-25

jsDelivr allows you to reference specific GitHub tags of a certain commit.

For example, I would like to use:

// @require            https://cdn.jsdelivr.net/gh/iFelix18/Userscripts@omdb-1.2.0/lib/api/omdb.min.js

instead of:

// @require            https://cdn.jsdelivr.net/gh/iFelix18/Userscripts@0352635854028c6e66d1ed3adc52061f61636a9d/lib/api/omdb.min.js

Here the tag on GitHub, in reference to that specific commit, here instead the jsDelivr page of the tag.

JasonBarnabe管理員
§
發表於:2022-01-25

We generally allow URLs where the contents will not change over time. It seems tag-based URLs like would change?

§
發表於:2022-01-26

It seems tag-based URLs like would change?

How?

JasonBarnabe管理員
§
發表於:2022-01-26

If the repo owner deleted the tag and recreated it, pointing to a different commit.

發表回覆

登入以回復