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

Rename header for preload requests #925

Merged
merged 2 commits into from Aug 25, 2023

Conversation

pfeiffer
Copy link
Contributor

This PR renames header and value for preloaded requests to x-purpose: preview. See discussion in #924.

@afcapel
Copy link
Collaborator

afcapel commented Aug 24, 2023

@pfeiffer thanks for explaining the problem in #924 and also creating a fix for it.

I think @rik is right in that if the standard defines a value for the header, we should adopt it as it will be more forward looking.

@pfeiffer
Copy link
Contributor Author

Thanks @afcapel! I've updated this PR with the header name and value matching the standard spec.

This is a breaking change and would require version bump. It would be great to have this included in Turbo as the current preload header is stripped by eg. Cloudflare and thus pretty unusable.

@afcapel afcapel merged commit 43cf629 into hotwired:main Aug 25, 2023
1 check passed
@afcapel
Copy link
Collaborator

afcapel commented Aug 25, 2023

Thanks @pfeiffer, we'll bump the version before releasing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants