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

Set Vary header to X-Inertia on HTML responses #128

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

skryukov
Copy link

This PR Fixes #124 by setting the Vary header to X-Inertia on all Inertia responses.

This change brings Rails adapter in line with the Laravel adapter:
https://github.com/inertiajs/inertia-laravel/blob/ddf47e999dcdabd2f370e5b9772a7449f4a81729/src/Middleware.php#L87

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

Successfully merging this pull request may close these issues.

Vary header should be included in all Inertia responses
1 participant