We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b635889 + 5a9117b commit 7761729Copy full SHA for 7761729
1 file changed
server/src/Docs.Web/Program.cs
@@ -94,6 +94,13 @@
94
var path = ctx.File.Name;
95
var requestPath = ctx.Context.Request.Path.Value ?? "";
96
97
+ // Pagefind assets (pagefind folder) - cache for 1 hour
98
+ if (requestPath.Contains("/pagefind/"))
99
+ {
100
+ ctx.Context.Response.Headers.CacheControl = "public, max-age=3600";
101
+ return;
102
+ }
103
+
104
// Astro assets (_astro folder) - cache for 1 year
105
if (requestPath.Contains("/_astro/"))
106
{
0 commit comments