We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 95c3a63 commit fbcd9b5Copy full SHA for fbcd9b5
src/Pages/_ViewStart.cshtml
@@ -1,15 +1,17 @@
1
@using Htmx
2
@{
3
- @if (!Context.Request.IsHtmx())
+ @if (!Context.Request.IsHtmx() || Context.Request.IsHtmxHistoryRestoreRequest())
4
{
5
Layout = "_Layout";
6
}
7
else if(Context.Request.IsHtmxBoosted())
8
9
+ Context.Response.Headers.Add("Vary", "HX-Request");
10
Layout = "_LayoutHtmxBoosted";
11
12
else
13
14
15
Layout = null;
16
-}
17
+}
0 commit comments