404: Not Found
+You just hit a route that doesn't exist... the sadness.
+ +diff --git a/firebase.json b/firebase.json index e782939..16752f2 100644 --- a/firebase.json +++ b/firebase.json @@ -1,10 +1,44 @@ { "hosting": { "public": "public", - "ignore": [ - "firebase.json", - "**/.*", - "**/node_modules/**" + "ignore": ["firebase.json", "**/.*", "**/node_modules/**"], + "headers": [ + { + "source": "**/*.html", + "headers": [ + { + "key": "Cache-Control", + "value": "public, max-age=0, must-revalidate" + } + ] + }, + { + "source": "page-data/**", + "headers": [ + { + "key": "Cache-Control", + "value": "public, max-age=0, must-revalidate" + } + ] + }, + { + "source": "static/**", + "headers": [ + { + "key": "Cache-Control", + "value": "public, max-age=31536000, immutable" + } + ] + }, + { + "source": "**/*.@(js|css)", + "headers": [ + { + "key": "Cache-Control", + "value": "public, max-age=31536000, immutable" + } + ] + } ] } } diff --git a/gatsby-browser.js b/gatsby-browser.js index 9ef9394..3886d57 100644 --- a/gatsby-browser.js +++ b/gatsby-browser.js @@ -1,10 +1,10 @@ // custom typefaces -import "@fontsource/inter/400.css" -import "@fontsource/inter/500.css" -import "@fontsource/inter/700.css" -import "@fontsource/jetbrains-mono/400.css" -import "@fontsource/jetbrains-mono/500.css" -import "@fontsource/jetbrains-mono/700.css" +import "@fontsource/inter/latin-400.css" +import "@fontsource/inter/latin-500.css" +import "@fontsource/inter/latin-700.css" +import "@fontsource/jetbrains-mono/latin-400.css" +import "@fontsource/jetbrains-mono/latin-500.css" +import "@fontsource/jetbrains-mono/latin-700.css" // custom CSS styles import "./src/style.css" diff --git a/gatsby-ssr.js b/gatsby-ssr.js index b66a6d9..0fcdbd2 100644 --- a/gatsby-ssr.js +++ b/gatsby-ssr.js @@ -10,3 +10,23 @@ exports.onRenderBody = ({ setHeadComponents }) => { />, ]) } + +// Gatsby inlines the full stylesheet into every page's
. Link the +// cacheable styles.You just hit a route that doesn't exist... the sadness.
-You just hit a route that doesn't exist... the sadness.
+ +