Skip to content

Commit 1ef0be1

Browse files
committed
turn on caching
1 parent 945fd28 commit 1ef0be1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui/server-start.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ const server = createServer(async (req, res) => {
9494
res.setHeader(key, value);
9595
});
9696

97-
// Prevent caching of HTML to avoid stale chunk references for now
97+
// Enable HTML caching with must-revalidate for versioned builds
9898
if (response.headers.get('content-type')?.includes('text/html')) {
99-
res.setHeader('Cache-Control', 'no-store, no-cache, must-revalidate');
99+
res.setHeader('Cache-Control', 'public, max-age=60, must-revalidate');
100100
}
101101

102102
// Stream the response body

0 commit comments

Comments
 (0)