mirror of
https://github.com/r-freeman/portfolio.git
synced 2024-11-25 21:45:41 +00:00
Updated caching headers for spotify api route
This commit is contained in:
parent
40d65290c6
commit
2f098f1429
@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user