aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-01-11 19:48:22 -0800
committerFuwn <[email protected]>2024-01-11 19:48:22 -0800
commit8aa6c107f568ab8ea6d2054f60e13c6c0c72429e (patch)
treeb13679395bf3cb31419511d88657f65069d838a9 /src
parentfeat(api): vercel cache (diff)
downloaddue.moe-8aa6c107f568ab8ea6d2054f60e13c6c0c72429e.tar.xz
due.moe-8aa6c107f568ab8ea6d2054f60e13c6c0c72429e.zip
fix(api): un-share some caches
Diffstat (limited to 'src')
-rw-r--r--src/lib/Media/Manga/chapters.ts2
-rw-r--r--src/routes/feeds/activity-notifications/+server.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Media/Manga/chapters.ts b/src/lib/Media/Manga/chapters.ts
index c2e2bc29..b3a8e7b9 100644
--- a/src/lib/Media/Manga/chapters.ts
+++ b/src/lib/Media/Manga/chapters.ts
@@ -70,7 +70,7 @@ const getManga = async (
return Response.json(mangadexData, {
headers: {
- 'Cache-Control': 'max-age=300, s-maxage=300'
+ 'Cache-Control': 'max-age=300'
}
});
};
diff --git a/src/routes/feeds/activity-notifications/+server.ts b/src/routes/feeds/activity-notifications/+server.ts
index a9698d72..2b6bfad1 100644
--- a/src/routes/feeds/activity-notifications/+server.ts
+++ b/src/routes/feeds/activity-notifications/+server.ts
@@ -77,7 +77,7 @@ export const GET = async ({ url }) => {
return new Response(token ? render(notification || []) : render(), {
headers: {
- 'Cache-Control': `max-age=0, s-max-age=0`,
+ 'Cache-Control': `max-age=0`,
'Content-Type': 'application/xml'
}
});