Skip to content

Commit 0921caa

Browse files
authored
prevent assets fallthrough (#1045)
1 parent 962a480 commit 0921caa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ if (viteDevServer) {
8484
// Remix fingerprints its assets so we can cache forever.
8585
app.use(
8686
'/assets',
87-
express.static('build/client/assets', { immutable: true, maxAge: '1y' }),
87+
express.static('build/client/assets', { immutable: true, maxAge: '1y', fallthrough: false }),
8888
)
8989

9090
// Everything else (like favicon.ico) is cached for an hour. You may want to be

0 commit comments

Comments
 (0)