(js) Prevent 304 HTTP status code in IE

Fixes #4066
This commit is contained in:
Francis Lachapelle
2017-03-08 15:58:47 -05:00
parent 4f73005d1d
commit 9df8eb367a
2 changed files with 10 additions and 0 deletions

1
NEWS
View File

@@ -13,6 +13,7 @@ Bug fixes
- [eas] improved EAS parameters parsing (#4003)
- [eas] properly handle canceled appointments
- [web] fixed SCAYT automatic language selection in HTML editor
- [web] prevent 304 HTTP status code for Ajax requests on IE (#4066)
2.3.19 (2017-01-09)
-------------------

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;