Skip to content

Commit 0f06c7f

Browse files
authored
Merge pull request #12 from swarakaka/patch-1
Switch to using the Vary: X-Inertia header
2 parents f2dd0ed + 669b619 commit 0f06c7f

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)