Make X-PJAX headers optional #224

Closed
opened 2020-04-19 20:40:51 -05:00 by nateberkopec · 1 comment
nateberkopec commented 2020-04-19 20:40:51 -05:00 (Migrated from github.com)

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 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?
Connum commented 2020-06-03 03:32:31 -05:00 (Migrated from github.com)

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?

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?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: iLoveElysia/pjax#224