jsdelivr: GitHub url does not work when there are no releases
I would expect the github url to work even when there are no releases and instead, use the master branch.
For example, /gh/jsonmc/jsonmc/ has the following response:
Couldn’t find the requested release version latest.
Or at the very least, could there be an option to use a branch instead of a tag such as @master?
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 23 (10 by maintainers)
Guess what just landed on our servers 😉
https://cdn.jsdelivr.net/gh/jsonmc/jsonmc/ https://cdn.jsdelivr.net/gh/jsonmc/jsonmc@master/ https://cdn.jsdelivr.net/gh/jsonmc/jsonmc@any-other-branch/
@heymartinadams there’s no example at https://www.jsdelivr.com/?docs=gh but the first line mentions it:
I agree the readme should be updated too though.
We’re aware, the last time I checked even some pages on their website were exact word-to-word copies of jsdelivr.com.
@ncruces there was a bug about 2 months ago, which caused some @branch files to be marked as static/immutable. The affected version of our code was live for about a week and some URLs cached at that time might have longer cache-control expiration. I purged your URLs and now they have correct headers.
@AlienKevin there’s no master branch in that repo, only gh-pages branch, and your file path is wrong as well. It’s theme-slate/style.css, not slate-theme/style.css. The correct link is https://cdn.jsdelivr.net/gh/Thrilleratplay/flatdoc@gh-pages/theme-slate/style.css
@MartinKolarik Thank you so much!
I will continue to proclaim @jsdelivr as the greatest service ever! 😄
https://github.com/jsdelivr/jsdelivr#purge-cache
We will consider adding this.