From 1da1aba9d513ba706ef304f661045947dc38021a Mon Sep 17 00:00:00 2001 From: Badri Sunderarajan Date: Fri, 27 Mar 2020 15:57:18 +0530 Subject: [PATCH] Update HTTP header config to always force reload of page This is especially crucial since we were using Gatsby earlier; browsers which still have the Gatsby PWA must be forced to refresh. --- netlify.toml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/netlify.toml b/netlify.toml index 2a2af47..7273c44 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,3 +1,11 @@ [build] publish = "dist" - command = "gridsome build" \ No newline at end of file + command = "gridsome build" + +[[headers]] + for = "/*" + [headers.values] + cache-control = ''' + public, + max-age=0, + must-revalidate'''