Skip to content

Commit

Permalink
chore(app): small cache length
Browse files Browse the repository at this point in the history
  • Loading branch information
yjl9903 committed Feb 3, 2024
1 parent 9b4a671 commit 9fea1b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/app/src/pages/api/[...path].ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const ALL: APIRoute = async ({ request, locals }) => {

return new Response(response.body, {
headers: {
'cache-control': request.method === 'GET' ? `public, max-age=3600` : 'no-store',
'cache-control': request.method === 'GET' ? `public, max-age=300` : 'no-store',
// @ts-ignore
...Object.fromEntries(response.headers.entries()),
'access-control-allow-origin': '*',
Expand Down

0 comments on commit 9fea1b1

Please sign in to comment.