pjax icon indicating copy to clipboard operation
pjax copied to clipboard

Make X-PJAX headers optional

Open nateberkopec opened this issue 5 years ago • 1 comments
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?

nateberkopec avatar Apr 20 '20 01:04 nateberkopec

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?

Connum avatar Jun 03 '20 08:06 Connum