Revert "Cache a font file (#4350)"

This reverts commit aa4bb4197b.
This commit is contained in:
dan
2022-02-18 01:27:05 +00:00
committed by GitHub
parent c8ec9d841a
commit f923a63bf0
6 changed files with 2 additions and 22 deletions

Binary file not shown.

View File

@@ -82,13 +82,6 @@ export const Seo = withRouter(
key="twitter:image"
content={`https://beta.reactjs.org${image}`}
/>
<link
rel="preload"
href="/fonts/Source-Code-Pro-Regular.woff2"
as="font"
type="font/woff2"
crossOrigin="anonymous"
/>
{children}
</Head>

View File

@@ -7,8 +7,7 @@
font-style: normal;
font-weight: 400;
font-display: swap;
src: local('Source Code Pro'),
url('/fonts/Source-Code-Pro-Regular.woff2') format('woff2');
src: url('/fonts/SourceCodePro-Regular.ttf') format('truetype');
}
@font-face {

View File

@@ -12,8 +12,7 @@
font-style: normal;
font-weight: 400;
font-display: swap;
src: local('Source Code Pro'),
url('/fonts/Source-Code-Pro-Regular.woff2') format('woff2');
src: url('/fonts/SourceCodePro-Regular.ttf') format('truetype');
}
/* Write your own custom base styles here */

View File

@@ -254,16 +254,5 @@
"destination": "https://5a046bf5a6188f4b8fa4938a--reactjs.netlify.com",
"permanent": false
}
],
"headers": [
{
"source": "/fonts/(.*).woff2",
"headers": [
{
"key": "Cache-Control",
"value": "public, max-age=31536000, immutable"
}
]
}
]
}