From 09f6f88c13d2d77af61ec92a1975515bcf0cbd25 Mon Sep 17 00:00:00 2001 From: Rick Kleinhans Date: Thu, 9 Apr 2020 21:43:32 +0200 Subject: [PATCH] Add firebase and prepare for initial deploy --- firebase.json | 53 +++++++++++++++++++++++++++++++++++++++++++++ src/pages/about.tsx | 2 +- 2 files changed, 54 insertions(+), 1 deletion(-) create mode 100644 firebase.json diff --git a/firebase.json b/firebase.json new file mode 100644 index 0000000..04b83e8 --- /dev/null +++ b/firebase.json @@ -0,0 +1,53 @@ +{ + "hosting": { + "public": "public", + "ignore": ["firebase.json", "**/.*", "**/node_modules/**"], + "headers": [ + { + "source": "**/*", + "headers": [ + { + "key": "cache-control", + "value": "cache-control: public, max-age=0, must-revalidate" + } + ] + }, + { + "source": "static/**", + "headers": [ + { + "key": "cache-control", + "value": "public, max-age=31536000, immutable" + } + ] + }, + { + "source": "**/*.@(css|js)", + "headers": [ + { + "key": "cache-control", + "value": "public, max-age=31536000, immutable" + } + ] + }, + { + "source": "sw.js", + "headers": [ + { + "key": "cache-control", + "value": "cache-control: public, max-age=0, must-revalidate" + } + ] + }, + { + "source": "page-data/**", + "headers": [ + { + "key": "cache-control", + "value": "cache-control: public, max-age=0, must-revalidate" + } + ] + } + ] + } +} diff --git a/src/pages/about.tsx b/src/pages/about.tsx index f790138..1a8ccb1 100644 --- a/src/pages/about.tsx +++ b/src/pages/about.tsx @@ -6,7 +6,7 @@ const AboutPage = () => (

- About + This is another Covid19 tracking website, because there aren't enough of those already.

);