1
0
mirror of https://github.com/dap-ps/discover.git synced 2025-01-31 03:26:13 +00:00

set max-age for statuc files to 1 month

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2019-11-05 17:21:35 +01:00
parent f21768eee7
commit 646abbd950
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020

View File

@ -23,7 +23,10 @@ async function setupAPI() {
setupPostRoutedAppMiddlewares(app);
app.use(express.static(path.join(__dirname, '/frontend')));
app.use(express.static(
path.join(__dirname, '/frontend'),
{ maxAge: '30 days' }
));
/* Handles any requests that don't match the ones above */
app.get('*', (req,res) =>{