rack-pjax icon indicating copy to clipboard operation
rack-pjax copied to clipboard

pjax + vagrant = aborted!

Open nahue opened this issue 13 years ago • 3 comments

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 ?

nahue avatar Feb 24 '12 23:02 nahue

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.

tute avatar Jul 17 '12 22:07 tute

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 );

tute avatar Jul 17 '12 22:07 tute

+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.

hau avatar Apr 13 '13 08:04 hau