Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make X-PJAX headers optional #224

Open
nateberkopec opened this issue Apr 20, 2020 · 1 comment
Open

Make X-PJAX headers optional #224

nateberkopec opened this issue Apr 20, 2020 · 1 comment

Comments

@nateberkopec
Copy link

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
Copy link

Connum commented Jun 3, 2020

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 up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants