Skip to content

Commit c3a5dc8

Browse files
authored
Set Vary header to X-Inertia (#45)
1 parent 372b41b commit c3a5dc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inertia/http.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def page_data():
6363
return JsonResponse(
6464
data=page_data(),
6565
headers={
66-
'Vary': 'Accept',
66+
'Vary': 'X-Inertia',
6767
'X-Inertia': 'true',
6868
},
6969
encoder=settings.INERTIA_JSON_ENCODER,

0 commit comments

Comments
 (0)