1
0
Fork 0
mirror of https://github.com/TheThomaas/my-online-cookbook.git synced 2026-01-10 20:01:47 +00:00

Cache fonts

This commit is contained in:
maeligg 2021-05-27 12:13:53 +02:00
parent 2cbbbb7418
commit 50c3d53f2a
3 changed files with 6 additions and 1 deletions

View file

@ -11,6 +11,7 @@ module.exports = config => {
config.addPassthroughCopy('src/img');
config.addPassthroughCopy('src/fonts');
config.addPassthroughCopy('src/admin');
config.addPassthroughCopy('netlify.toml');
/* Collections */

4
netlify.toml Normal file
View file

@ -0,0 +1,4 @@
[[headers]]
for = "/fonts/*"
[headers.values]
Cache-Control = "public, max-age=2592000"

2
package-lock.json generated
View file

@ -1,6 +1,6 @@
{
"name": "my-online-cookbook",
"version": "1.0.0",
"version": "0.1.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {