We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b65b6b3 commit c968165Copy full SHA for c968165
src/server/serve.ts
@@ -18,7 +18,12 @@ const sendStaticFiles = async (
18
staticDirectory: string
19
) => {
20
return new Promise<void>((resolve) => {
21
- send(req, requestPath, { root: staticDirectory, dotfiles: 'deny' })
+ send(req, requestPath, {
22
+ root: staticDirectory,
23
+ dotfiles: 'deny',
24
+ immutable: true,
25
+ maxAge: Number.MAX_SAFE_INTEGER,
26
+ })
27
.on('directory', () => {
28
res.status(404).end(NOT_FOUND)
29
})
0 commit comments