Path layout, caching and the few rules there are.
https://static-assets-eu.lol/npm/<package>/<version>/<file>
Versions are exact. There is no latest alias on purpose, silent upgrades break things.
The apex answers from whichever edge is closest. During a benchmark you may want a fixed one:
https://cdn-a3f81.static-assets-eu.lol/npm/htmx/1.9.12/htmx.min.js https://cdn-b7d24.static-assets-eu.lol/npm/htmx/1.9.12/htmx.min.js https://cdn-c5e96.static-assets-eu.lol/npm/htmx/1.9.12/htmx.min.js
Edge names change when hardware is replaced. Do not hardcode them in production.
Cache-Control: public, max-age=31536000, immutableSend the package name, the version and the license. Small, stable, permissively licensed libraries get added, everything else is declined without much discussion.