defunkt / jquery-pjax

pushState + ajax = pjax
https://pjax.herokuapp.com
MIT License
16.73k stars 1.97k forks source link

duplicated requests with different status code & timing #641

Closed ctf0 closed 8 years ago

ctf0 commented 8 years ago

not sure if this is the normal behavior but this only happens on live server, in localhost all works without any issues.

test

// main template
<section class="pjax-container">
     // pages gets loaded here dynamically
</section>
$(document)
    .on('ready pjax:success', function() {
        // ...
    })
    .pjax('.links', '.pjax-container')
    .on('pjax:start', function() {})
    .on('pjax:complete', function() {});

$.pjax.defaults.timeout = 4000;