Skip to content

Commit 669b619

Browse files
authored
Switch to using the Vary: X-Inertia header
(#404)[inertiajs/inertia-laravel@d00512e]
1 parent 2083a90 commit 669b619

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

inertia/http.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,7 @@ def page_data():
5858
return JsonResponse(
5959
data=page_data(),
6060
headers={
61-
'Vary': 'Accept',
62-
'X-Inertia': 'true',
61+
'Vary': 'X-Inertia',
6362
},
6463
encoder=settings.INERTIA_JSON_ENCODER,
6564
)

0 commit comments

Comments
 (0)