Skip to content

Commit

Permalink
Possible workaround for #750
Browse files Browse the repository at this point in the history
  • Loading branch information
jfarcand committed Dec 7, 2012
1 parent 472d509 commit c639aa0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/jquery/src/main/webapp/jquery/jquery.atmosphere.js
Original file line number Diff line number Diff line change
Expand Up @@ -1672,6 +1672,10 @@ jQuery.atmosphere = function() {
// window.XDomainRequest() cannot read response headers, hence X-Atmosphere-Tracking-ID
// and X-Cache-Date won't work.
// _readHeaders()
// Approximate X-Cache-Date as we can't read it. The workaround is to rest that value in the
// callback.
rq.lastTimestamp = jQuery.now();


if (rq.transport == "long-polling" && (rq.maxRequest == -1 || rq.requestCount++ < rq.maxRequest)) {
xdr.status = 200;
Expand Down

0 comments on commit c639aa0

Please sign in to comment.