Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I "just" reverse-proxy and http-cache the CDN using Varnish (i.a.).

There is no build-step, no download- or installation-step, no nothing.

Just... import x from "https://packages.my-domain.net/x@v1.2.3" in JavaScript and it works. All files served locally.

I always assumed, worst that could happen is somebody decides to download all of that CDN's library to my RAM by simply requesting the appropriate URLs until Varnish starts dropping the modules I wanted to cache in the first place.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: