From ae7057518c9e80c1e81735eb71218a139f8af6d6 Mon Sep 17 00:00:00 2001
From: Cory Dransfeldt <coryd@hey.com>
Date: Thu, 29 Feb 2024 13:39:45 -0800
Subject: [PATCH] chore: cache policy

---
 api/now-playing.js | 2 +-
 package.json       | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/api/now-playing.js b/api/now-playing.js
index b452d29a..1c906277 100644
--- a/api/now-playing.js
+++ b/api/now-playing.js
@@ -58,7 +58,7 @@ export default async () => {
   const MUSIC_KEY = Netlify.env.get("API_KEY_LASTFM");
   const headers = {
     "Content-Type": "application/json",
-    "Cache-Control": "public, s-maxage=3600",
+    "Cache-Control": "public, s-maxage=3600, stale-while-revalidate=10800, stale-if-error=10800",
   };
 
   const traktRes = await fetch("https://api.trakt.tv/users/cdransf/watching", {
diff --git a/package.json b/package.json
index 7145d576..3159e0d6 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
 {
   "name": "coryd.dev",
-  "version": "6.9.1",
+  "version": "6.9.2",
   "description": "The source for my personal site. Built using 11ty and hosted on Netlify.",
   "type": "module",
   "scripts": {