chore: tweak caching

This commit is contained in:
Cory Dransfeldt 2024-02-29 16:06:23 -08:00
parent dac3bd5252
commit ce9dedc4c9
No known key found for this signature in database

View file

@ -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", {