What's the best way to serve static files from a CDN?

We’re running a single Jupyter Notebooks server and sharing it with several people (from different continents). For some of us*, the loading of static files is very slow.

What’s the best way to serve the static files from a CDN? I found the following setting:


Is that the recommended way? Would that also work for JupyterLab?

And a follow up question; assuming this is the correct setting, how would you go about using something like Cloudfront? I could write a simple boto3 script to iterate over all the static files and push them to s3, but maybe there’s something already built.


* I’m in a small town in Europe and my internet is very bad :frowning: