Skip to content

Commit e80da49

Browse files
fix: removing cache-control from elysia static options.
1 parent 0188bd0 commit e80da49

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/react-router.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export async function reactRouter(
6565
staticPlugin({
6666
prefix: "/",
6767
assets: join(options?.buildDirectory ?? "build", "client"),
68-
headers: { "Cache-Control": "public, max-age=31536000, immutable" },
68+
maxAge: 60 * 60 * 24 * 30,
6969
...options?.production?.assets,
7070
}),
7171
);

src/remix.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export async function remix(
7070
staticPlugin({
7171
prefix: "/",
7272
assets: join(options?.buildDirectory ?? "build", "client"),
73-
headers: { "Cache-Control": "public, max-age=31536000, immutable" },
73+
maxAge: 60 * 60 * 24 * 30,
7474
...options?.production?.assets,
7575
}),
7676
);

0 commit comments

Comments
 (0)