Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit 7ca08eb

Browse files
committed
Improve http cache control
1 parent 8a1744a commit 7ca08eb

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

server/server.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,8 @@ export class Server {
131131
}
132132
}
133133

134-
// in dev mode, we use `Last-Modified` and `ETag` header to control cache
135-
if (aleph.isDev) {
136-
resp.setHeader('Cache-Control', 'max-age=0')
137-
}
134+
// we use `Last-Modified` and `ETag` header to control cache
135+
resp.setHeader('Cache-Control', 'max-age=0')
138136

139137
// serve dist files
140138
if (pathname.startsWith('/_aleph/')) {

0 commit comments

Comments
 (0)