wget https://static.vanta.com/static/index.c4254ba7.js
--2022-05-26 10:50:30-- https://static.vanta.com/static/index.c4254ba7.js
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving static.vanta.com (static.vanta.com)... 54.206.202.192, 54.206.231.79, 2406:da1c:6aa:c001:d259:ca50:eb2a:ae16, ...
Connecting to static.vanta.com (static.vanta.com)|54.206.202.192|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 13766805 (13M) [application/javascript]
Saving to: ‘index.c4254ba7.js’
index.c4254ba7.js 100%[====>] 13.13M 2.11MB/s in 7.6s
I know this is a throwaway line, but…
The Business Plan uses the same “Standard” network as the “Pro” and “Starter” plans.
Only the Enterprise Plan advertises as using a faster network.
OK, that’s good to know. A few follow up questions
Is that 5MB limit documented somewhere? I can’t find a reference to it
If I precompress the files, does that get me around the 5MB limit?
Why the huge variation in download times (it’s like 100x difference between the two wget calls I made above)? Is there some caching happening somewhere?
Hi Coel,
Thanks for trying it out and the pointer to search the forum for the 5MB limit. It would be great if that limit was documented more clearly (like cloudflare pages does for its 25MB limit - https://developers.cloudflare.com/pages/platform/limits/#file-size)
Support rep here. Yes, the way we handle files depends on their file size - what Coel says is correct, that the cutoff is around ~5mb (I don’t think it’s actually 5mb on the dot)
anything less than that will come through from the node, and everything above will stream from the origin.
The netlify docs don’t really contain tons of infrastructure info about our CDN, but i will check in with docs team and ask if we can put this info somewhere.
In general, if something is mentioned in a #netlify-support:support-guides then it is safe to trust. The closest i found to mentioning this limit is in here:
i agree that we could have this better documented and I’ll see what we can do about that.
In the meantime, breaking files down into smaller sizes is the way to go. Not sure what you mean by pre-compressing - are you talking about compressing them locally and then using asset optimization to squeeze them down further or? Not sure using our asset optimization algo will help much on top of what you are already doing)