mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-01-11 22:40:31 +00:00
Use es6 function for headers
This commit is contained in:
parent
361ba354cb
commit
5c17408b20
1 changed files with 1 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ const build_path = path.resolve(__dirname, 'build');
|
|||
const index_path = path.join(build_path, 'index.html');
|
||||
|
||||
express().use(express.static(build_path, {
|
||||
setHeaders: function(res, path) {
|
||||
setHeaders: (res, path) => {
|
||||
if (path === index_path) res.set('cache-control', `public, max-age: ${INDEX_CACHE}`);
|
||||
else res.set('cache-control', `public, max-age: ${ASSETS_CACHE}`);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue