jquery-pjax
jquery-pjax copied to clipboard
Send version request header
In order to avoid wasting server resources, I'd like to be able to check the version
already registered for PJAX before processing anything, in order to end the request early, sending the new version via a response header.
This PR fixes the issue, but does result in a bit of duplication (currentVersion
code is copied from options.success()
).