Skip to content

Commit

Permalink
Fix cache for static assets
Browse files Browse the repository at this point in the history
  • Loading branch information
caiogondim committed May 19, 2020
1 parent c6f23f7 commit 7cd3f5b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions now.json
Expand Up @@ -2,8 +2,13 @@
"version": 2,
"headers": [
{
"source": "/public/static/.+",
"headers": { "cache-control": "s-maxage=31536000, max-age=86400, stale-while-revalidate=86400" }
"source": "/static/(.*)",
"headers": [
{
"key": "cache-control",
"value": "s-maxage=31536000, max-age=86400, stale-while-revalidate=86400"
}
]
}
],
"alias": ["caiogondim.com"]
Expand Down

1 comment on commit 7cd3f5b

@vercel
Copy link

@vercel vercel bot commented on 7cd3f5b May 19, 2020

Choose a reason for hiding this comment

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

Deployment failed with the following error:

ENOENT: no such file or directory, stat '/tmp/JNRMz3F2hahGKdOeJW2bodhB/repo/public/static/superstylin.css'

Please sign in to comment.