Skip to content

Commit

Permalink
(js) Prevent 304 HTTP status code in IE
Browse files Browse the repository at this point in the history
Fixes #4066
  • Loading branch information
cgx committed Mar 8, 2017
1 parent 4f73005 commit 9df8eb3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions NEWS
Expand Up @@ -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)
-------------------
Expand Down
9 changes: 9 additions & 0 deletions UI/WebServerResources/generic.js
Expand Up @@ -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;
Expand Down

0 comments on commit 9df8eb3

Please sign in to comment.