chore: tweak caching
This commit is contained in:
parent
dac3bd5252
commit
ce9dedc4c9
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ export default async () => {
|
||||||
const MUSIC_KEY = Netlify.env.get("API_KEY_LASTFM");
|
const MUSIC_KEY = Netlify.env.get("API_KEY_LASTFM");
|
||||||
const headers = {
|
const headers = {
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
"Cache-Control": "public, s-maxage=3600, stale-while-revalidate=10800",
|
"Cache-Control": "public, s-maxage=360, stale-while-revalidate=1080",
|
||||||
};
|
};
|
||||||
|
|
||||||
const traktRes = await fetch("https://api.trakt.tv/users/cdransf/watching", {
|
const traktRes = await fetch("https://api.trakt.tv/users/cdransf/watching", {
|
||||||
|
|
Reference in a new issue