diff --git a/server/index.js b/server/index.js index a4fa4e4..cc06254 100644 --- a/server/index.js +++ b/server/index.js @@ -21,6 +21,11 @@ app setHeaders: (res) => { res.setHeader('cache-control', 'immutable'); }, + }))) + .use(Mount('/pictures', Static(path.resolve(__dirname, '../pictures'), { + setHeaders: (res) => { + res.setHeader('cache-control', 'immutable'); + }, }))); module.exports = app;