Closed FranklinYu closed 5 years ago
OK. But, https://chocolatey.org/docs/create-packages#package-icon-guidelines
Package icon guidelines: Avoid using GitHub raw links (https://raw.githubusercontent.com/...). They are not intended to be used as CDN.
"RawGit is deprecated." Yes, please wait until chocolatey community decision.
I changed the URL to use jsDelivr, a CDN website.
About whether to enforce CDN for package icon, I had a conversation with several Chocolatey member on Gitter. They claim that it can be several downloads a day, which is not persuasive at all (large website like GitHub is able to take a request per-second without CDN). Anyway I understand that you want to follow their guide.
Any update? jsDelivr is already being used by several packages it should be OK.
@FranklinYu Thanks.
I figured that if you don’t change the URL, the Chocolatey website won’t update the icon. The RawGit CDN has a strong caching policy that only caches first version of that URL, so having SHA-1 in the URL helps.
In addition RawGit is deprecated. GitHub now delivers correct header for PNG and JPEG so no need to find anything else. (But for SVG we still need jsDelivr.)