pjax
pjax copied to clipboard
Make X-PJAX headers optional
trafficstars
I preload documents using rel=preload, and because PJAX adds headers to the request, it cannot use those preloaded documents.
Simply removing the headers works and no network requests are sent on a PJAX navigation. Should we make them optional? What should that option be called?
I'm currently trying to implement instant.page (which uses <link rel="preload">) in addition to pjax and I'm facing the same issue. Have you found a workaround? How did you remove the headers to see that it works? By modifying the code of the package manually?