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.

);