Skip to content

Commit

Permalink
feat: add cache-control for *.ttf
Browse files Browse the repository at this point in the history
  • Loading branch information
ifyour committed Apr 13, 2020
1 parent 6d1c35b commit f4fa33f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions now.json
Expand Up @@ -6,6 +6,13 @@
}
},
"routes": [
{
"src": "/(.*[.ttf])",
"headers": {
"Cache-Control": "max-age=63072000"
},
"continue": true
},
{
"src": "/api/font.ttf",
"methods": [
Expand Down

1 comment on commit f4fa33f

@vercel
Copy link

@vercel vercel bot commented on f4fa33f Apr 13, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.