diff options
| author | Fuwn <[email protected]> | 2023-12-10 02:52:42 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-12-10 02:52:42 -0800 |
| commit | 5ce87ef1ae379db84e7ee0b32e2a5024b7915d81 (patch) | |
| tree | d35340921d5683260053876016d934f42bfc2234 /src/routes/api/birthdays/acdb | |
| parent | feat(manga): lighter rate-limits (diff) | |
| download | due.moe-5ce87ef1ae379db84e7ee0b32e2a5024b7915d81.tar.xz due.moe-5ce87ef1ae379db84e7ee0b32e2a5024b7915d81.zip | |
feat(api): safe response rate-limits
Diffstat (limited to 'src/routes/api/birthdays/acdb')
| -rw-r--r-- | src/routes/api/birthdays/acdb/+server.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/routes/api/birthdays/acdb/+server.ts b/src/routes/api/birthdays/acdb/+server.ts index fe13ff7c..b82dbd73 100644 --- a/src/routes/api/birthdays/acdb/+server.ts +++ b/src/routes/api/birthdays/acdb/+server.ts @@ -14,6 +14,11 @@ export const GET = async ({ url }: { url: URL }) => { } } ) - ).json() + ).json(), + { + headers: { + 'Cache-Control': 'max-age=1800' + } + } ); }; |