Skip to content

Commit 2bad108

Browse files
authored
Revert "Switch to using the Vary: X-Inertia header"
1 parent 057fe35 commit 2bad108

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

inertia/http.py

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

0 commit comments

Comments
 (0)