Skip to content

Commit 1b6cf6c

Browse files
fix: cache for one year
1 parent e80da49 commit 1b6cf6c

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-
maxAge: 60 * 60 * 24 * 30,
68+
maxAge: 31536000,
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-
maxAge: 60 * 60 * 24 * 30,
73+
maxAge: 31536000,
7474
...options?.production?.assets,
7575
}),
7676
);

0 commit comments

Comments
 (0)