Updated caching headers for spotify api route

This commit is contained in:
r-freeman 2023-01-18 20:30:40 +00:00
parent 40d65290c6
commit 2f098f1429

View File

@ -25,6 +25,19 @@ const nextConfig = {
} else {
return []
}
},
async headers() {
return [
{
source: '/api/spotify/currently-playing',
headers: [
{
key: "Cache-Control",
value: "s-maxage=1, stale-while-revalidate=59"
}
]
}
]
}
}