We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6cf94e2 + e53d1b7 commit 1bfacfaCopy full SHA for 1bfacfa
1 file changed
middleware/index.js
@@ -62,7 +62,13 @@ module.exports = function (app) {
62
// *** Rendering, 2xx responses ***
63
// I largely ordered these by use frequency
64
app.use(instrument('./archived-enterprise-versions-assets')) // Must come before static/assets
65
- app.use('/dist', express.static('dist'))
+ app.use('/dist', express.static('dist', {
66
+ index: false,
67
+ etag: false,
68
+ immutable: true,
69
+ lastModified: false,
70
+ maxAge: '28 days'
71
+ }))
72
app.use('/assets', express.static('assets'))
73
app.use('/public', express.static('data/graphql'))
74
app.use('/events', instrument('./events'))
0 commit comments