Skip to content

Commit

Permalink
feat: allow caching errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ymtszw committed Aug 5, 2023
1 parent b560970 commit f1bbf57
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,8 @@ function handleError(
status: status,
headers: withCorsHeaders(origin, {
"content-type": "application/json",
"Cache-Control": "public, max-age=" + 60 * 60,
"CDN-Cache-Control": "public, max-age=" + 10 * 60,
}),
}
);
Expand Down

0 comments on commit f1bbf57

Please sign in to comment.