Every site has access to the same set of "/globalincludes"
These files are the same for every site.
And, yet every site references them via their own domain , eg. csgb2b.co,uk/globalincludes
we should continue to allow this for backward compatiblity and to make migration over time easier, but basically if we set up an azure CDN with a custom domain of cdn.prospect365.com and direct this to a CMS site (maybe prospectsoft.com or maybe a dummy site) then the CDN will cache these files.
Then make every site access these global files from cdn.prospect365.com/globalincludes/
Some of this might be really small changes to our code, others might need a manual change to references within the site itself.
OR, we could add a text replace to the CMS so that any URL on the page that starts with /globalincludes/ is globally replaced with cdn.prospect365.com/globalincludes/
That might be the best option.
We should also consider what else should be in the globalincludes - anything that is the same on every site ... like /footer.js ? .JS files or CSS files for plugins like productgroups.js