From b3fe0911e6dbe092f74128b68184cfff861b452e Mon Sep 17 00:00:00 2001 From: Badri Sunderarajan Date: Fri, 27 Mar 2020 16:59:25 +0530 Subject: [PATCH] Make redirects more sensible --- netlify.toml | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/netlify.toml b/netlify.toml index 7273c44..4d41d5d 100644 --- a/netlify.toml +++ b/netlify.toml @@ -3,9 +3,33 @@ command = "gridsome build" [[headers]] - for = "/*" + for = "/" [headers.values] cache-control = ''' public, max-age=0, must-revalidate''' + +[[headers]] + for = "*/" + [headers.values] + cache-control = ''' + public, + max-age=0, + must-revalidate''' + +[[headers]] + for = "*.htm" + [headers.values] + cache-control = ''' + public, + max-age=0, + must-revalidate''' + +[[headers]] + for = "*.json" + [headers.values] + control = ''' + public, + max-age=0, + must-revalidate'''