Cache fonts
This commit is contained in:
parent
2cbbbb7418
commit
50c3d53f2a
|
|
@ -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
4
netlify.toml
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
[[headers]]
|
||||
for = "/fonts/*"
|
||||
[headers.values]
|
||||
Cache-Control = "public, max-age=2592000"
|
||||
2
package-lock.json
generated
2
package-lock.json
generated
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "my-online-cookbook",
|
||||
"version": "1.0.0",
|
||||
"version": "0.1.0",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
|
|
|||
Loading…
Reference in a new issue