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.

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

It seems tag-based URLs like would change?

How?

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

Ответить

Войдите, чтобы ответить.