rack-pjax
rack-pjax copied to clipboard
pjax + vagrant = aborted!
i´ve run into trouble using a site inside vagrant with ports 22 and 3000 forwarded... when a link uses pjax.. it just gets the pjax connection aborted and continues with a regular http request.. anybody knows why ?
I'm not using vagrant, and PJAX connection sometimes get aborted and a new GET request get's started in the server. No idea why yet.
It gets canceled in jquery.js#8241 (v1.7.2):
// Do send the request
// This may raise an exception which is actually
// handled in jQuery.ajax (so no try/catch here)
xhr.send( ( s.hasContent && s.data ) || null );
+1 requests get aborted and it sends another request. second request is not ajax and there's no X-PJAX header, as though it was a browser redirect. version is 0.7.0.