As everyone knows, the control panel is currently only installed on one server.
Many of us may have clients from all over the world, so this raises the problem of slow website performance with the control panel.
The problem could be solved by using a CDN to handle the control panel's static files, css, js etc.
The operation appears to be simple, requiring integration by the Enhance team.
- At the CDN provider, e.g. Bunny.net, we create a "pull zone" with the origin url of the control panel, example "cp.example.com"
- Bunny.net creates a CNAME for us which will serve the CDN traffic, example. "cdn-bunny.cp.example.com"
- Somewhere in the "Enhance" settings we change the URL for displaying static files from the default "cp.example.com"
- The control panel changes the addresses of the static files to CDN
Now, for example, the file cp.example.com/static/js/main.163c2463.js is served by CDN "cdn-bunny.cp.example.com/static/js/main.163c2463.js" allowing a reduced worldwide delay and use of the cache.
Is this a good idea? I would use
Example my "main.163c2463.js" file weighs 585 kB, its a lot.