From 436d4cb1d1831976e2d377e0307be784d6a5ef82 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Mon, 22 Oct 2018 22:25:51 +0000 Subject: [PATCH] --- Startup.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Startup.cs b/Startup.cs index f303064..03cb747 100644 --- a/Startup.cs +++ b/Startup.cs @@ -101,10 +101,10 @@ namespace GZTW.Pecklist { OnPrepareResponse = context => { - if (context.File.Name == "index.html") + if (context.File.Name == "index.html" || context.File.Name == "sw.js" ) { - context.Context.Response.Headers.Add("Cache-Control", "no-cache, no-store"); - context.Context.Response.Headers.Add("Expires", "-1"); + context.Context.Response.Headers.Add("Cache-Control", "no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0"); + // context.Context.Response.Headers.Add("Expires", "-1"); } } });