7/22/2023 0 Comments Unpkg react16.3I haven't set up rate limiting on the CDN, but maybe Cloudflare does some rate limiting by default. I don't believe that rate limiting should ever be a problem on. I'm planning on running unpkg locally and seeing if I can replicate the errors there w/ logging, but any info you can provide would be much appreciated. Other times, instead of a 503, I'll get back a 404 with the Not found: file "/folder/file.ext" in package (with actual file path & package name in error) - but upon refreshing the URL, the file contents come back totally are you aware of any issues that might be causing this? (i.e. For example, about an hour ago I performed an install of and got back a 503 for this file - but after refreshing that file's URL, the file contents were successfully sent back. However, I've noticed that Unpkg will send back 503's and incorrect 404's from time to time, and I'm thinking that it might be due to a race condition that happens when Unpkg encounters a package it's seen for the first time. For a large package like Angular it will typically make ~100-200 requests within a 5s period, and performance/reliability typically isn't a problem. ![]() An important note is that we are not downloading UMD/dist builds, but instead downloading all files required from the main/module/typings field in the package JSON. ![]() I'm working on an in-browser NPM client for System that intelligently downloads all of the files the app needs from Unpkg (instead of downloading everything w/ the actual tarball).
0 Comments
Leave a Reply. |