Initially reported on https://github.com/mautic/mautic/issues/4017
The load of the mtc.js file is quite long on web browser. One of the opportunity to optimize that load, is to add a cache control to the mtc.js.
Unfortunately, there are small dynamic pieces in the mtc.js if the mautic user has web notifications, pages, (gated videos ?) and dynamic contents. Because of that, it is NOT possible to add the cache control.
Create a core mtc.js that is ALWAYS the same and that includes a cache control.
Create a “dynamic” script (eg: mtc_dynamic.js) that includes variations hereabove which will be generated each time if needed.
This optimization request has been +1 by many GH users.