How to prevent Craft from injecting scripts in the page? I have a website that resides behind a static cache. Today, I realised that some of the cached pages contain this bit of JavaScript at the end:

&lt;script type="text/javascript"&gt;
/*&lt;![CDATA[*/
(function(){
    var XMLHttpFactories = [
        function () {return new XMLHttpRequest()},
        function () {return new ActiveXObject("Msxml2.XMLHTTP")},
        function () {return new ActiveXObject("Msxml3.XMLHTTP")},
        function () {return new ActiveXObject("Microsoft.XMLHTTP")}
    ];
    var req = false;
    for (var i = 0; i &lt; XMLHttpFactories.length; i++) {
        try {
            req = XMLHttpFactories[i]();
        }
        catch (e) {
            continue;
        }
        break;
    }
    if (!req) return;
    req.open('GET', "https://allaboutberlin.com/index.php/actions/queue/run", true);
    if (req.readyState == 4) return;
    req.send();
})();
/*]]&gt;*/
&lt;/script&gt;


Since the page is cached, every page loads makes this HTTP request, and it could easily bring my website down if it gets a traffic spike. How do I disable this feature?
You can set the runQueueAutomatically config setting to false to prevent this.

You'll just want to set up an alternative way to process the queue as noted in the docs.