Skip to content
This repository has been archived by the owner on Aug 15, 2023. It is now read-only.

Commit

Permalink
Add cache control header to now playing API
Browse files Browse the repository at this point in the history
  • Loading branch information
Griko Nibras committed Jan 27, 2020
1 parent 55edca1 commit 6237fde
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions now.json
Expand Up @@ -25,6 +25,12 @@
"headers": [
{ "key": "Cache-Control", "value": "public, max-age=31536000, stale-while-revalidate=86400" }
]
},
{
"source": "/api/now-playing",
"headers": [
{ "key": "Cache-Control", "value": "public, max-age=300, stale-while-revalidate=60" }
]
}
],
"public": false
Expand Down

1 comment on commit 6237fde

@vercel
Copy link

@vercel vercel bot commented on 6237fde Jan 27, 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.