eval / rack-pjax

pjax for rails and rack applications
http://rack-pjax.herokuapp.com/
MIT License
205 stars 65 forks source link

pjax + vagrant = aborted! #9

Open nahue opened 12 years ago

nahue commented 12 years ago

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 ?

tute commented 12 years ago

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 commented 12 years ago

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 );
hau commented 11 years ago

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