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)

Most upvoted comments

@heymartinadams there’s no example at https://www.jsdelivr.com/?docs=gh but the first line mentions it:

load any GitHub release, commit, or branch

I agree the readme should be updated too though.

In fact, it looks like they copied a lot of what jsdelivr does and how it looks.

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! 😄

We will consider adding this.