(js) Prevent 304 HTTP status code in IE

Fixes #4066
This commit is contained in:
Francis Lachapelle committed 2017-03-08 15:58:47 -05:00
1 parent 4f73005d1d
commit 9df8eb367a
2 files changed
+10

No files matched your search

+9
View File
@@ -468,6 +468,15 @@ function triggerAjaxRequest(url, callback, userdata, content, headers, attempt)
activeAjaxRequests++;
document.animTimer = setTimeout("checkAjaxRequestsState();", 250);
if (Prototype.Browser.IE) {
// Prevent 304 HTTP status code from the server
if (url.indexOf('?') >= 0)
url += '&';
else
url += '?';
url += 'nc=' + Math.random();
}
http.open(method, url, true);
http.url = url;
http.paramHeaders = headers;