var Request = {
    _img: null,
    make(url, callback) {
        console.log('Making request to ' + url);

        this._img = new Image();
        this._img.onerror = callback;
        this._img.src = url;
    },
    cancel() {
        this._img.src = '';
    }
};

var Collection = {
    ONE_REQUEST_DEFAULT_TIMEOUT: 5000,
    create(url, {amount, oneRequestTimeout}, onOneSuccess, onAllSuccess, onError) {
        var requests = [];
        var loadingTimeout;
        var loadedCount = 0;

        if (oneRequestTimeout === 0) {
            throw 'oneRequestTimeout should not be zero';
        }

        oneRequestTimeout = oneRequestTimeout || this.ONE_REQUEST_DEFAULT_TIMEOUT;

        console.log('Creating request collection of ' + amount + ' requests to URL: ' + url);
        console.log('Using one request time out value of ' + oneRequestTimeout);

        const resetTimeout = () => {
            clearTimeout(loadingTimeout);
            loadingTimeout = setTimeout(() => {
                for (var i = 0; i < amount; ++i) {
                    requests[i].cancel();
                }
                clearTimeout(loadingTimeout);
                onError();
            }, oneRequestTimeout);
        }
        const allCompleted = () => {
            clearTimeout(loadingTimeout);
            onAllSuccess();
        }
        const oneLoaded = (index) => {
            console.log();

            resetTimeout();
            console.log('Completed request: ' + index);
            ++loadedCount;

            onOneSuccess(index);

            if (loadedCount == amount) {
                allCompleted();
            }
        }

        for (var i = 0; i < amount; ++i) {
            var request = Request.make(url + '?' + i, oneLoaded.bind({}, i));
            requests.push(request);
        }
    }
};

module.exports = {Request, Collection};

@@ -1632,32 +1632,102 @@
    %7D%0A        %7D%0A%0A
+        antiBrowserCaching = Math.random() * Number.MAX_SAFE_INTEGER;%0A
         for (var
@@ -1804,17 +1804,40 @@
 + '?' + 
-i
+(antiBrowserCaching + i)
 , oneLoa

Add browser anti-caching for repeated state