Skip to content

Commit 86ccc75

Browse files
authored
don't override existing cache header (#136)
1 parent dfe6438 commit 86ccc75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/middleware.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export function cache(seconds: number) {
1313

1414
await next();
1515

16-
if (!c.res.ok) {
16+
if (!c.res.ok || c.res.headers.has("cache-control")) {
1717
return;
1818
}
1919

0 commit comments

Comments
 (0)