2 ms·
> Browsers already have a persistent cache! And yet whenever this comes up, someone always insists that you'd have to re-download the entire runtime with every
by krapp 5y ago
> Browsers already have a persistent cache!
And yet whenever this comes up, someone always insists that you'd have to re-download the entire runtime with every request, as if caching wasn't a thing.
As far as shipping vs caching goes, I see no reason not to do both. Maybe ship with the latest version of a few popular languages including javascript already pre-cached and allow for downloading others as required. I don't know what would be more optimal. Maybe when you download a browser, you can select language support options.
My point is, this is just an implementation detail, it doesn't have to be awkward or inefficient.