Two ways to quote:
- Store in the warehouse branch, direct reference
- After the version number is created, refer to
Wondering why the quote was so much trouble. I’ve seen tutorials like this online, and they always omit one key reason, which almost stumped me. Beyond 50M jsdelivr is inaccessible. In order to free fleece lifting, it is recommended to use the release version number scheme, as long as the size of a single version number is not more than 50M, multiple versions can exceed 50M limit.
The package size exceeded the configured limit of 50 MB.
I wonder why I found this out. I made the assumption that if the warehouse had a lot of photo resources and access to them, then this kind of tutorial, as a means of free masturbation in China, would have been recommended by the big men and would not have been so lukewarm. Finally, I tried to upload several oversized pictures, but I was prompted that I could not access them. After two versions (no more than 50M each time), I could access them normally when the total size exceeded 50M.
1. Direct reference
Format for:
https://cdn.jsdelivr.net/gh/ < user name > / < warehouse name > / < file and path >Copy the code
Ex. :
Making https://github.com/qqlcx5/figure-bed/blob/master/img/20200710230327.jpg into jsdelivr https://cdn.jsdelivr.net/gh/qqlcx5/figure-bed/img/20200710230327.jpgCopy the code
Conclusion:
Github.com 'replaced with cdn.jsdelivr.net/gh /blob/master deletedCopy the code
The version number
Version numbers are linked by the @ sign. Format:
https://cdn.jsdelivr.net/gh/ < user name > / < name > warehouse @ / version number / < file and path >Copy the code
Ex. :
Making https://github.com/qqlcx5/figure-bed/blob/1.0/img/20200710230327.jpg into jsdelivr https://cdn.jsdelivr.net/gh/qqlcx5/[email protected]/img/20200710230327.jpgCopy the code
Conclusion:
Github.com 'replaced with cdn.jsdelivr.net/gh /blob/ replaced with @ note: version number created in 1.0Copy the code
Published versions are not affected by changes in repository content and are referenced by version number. The relative stability of the link is also the reason why I recommend it especially.