From 57badc016bed58f82ee7b1bbf0dd325789a20d44 Mon Sep 17 00:00:00 2001 From: Keith Kelleher Date: Sat, 3 Oct 2020 00:14:38 -0400 Subject: [PATCH] fix another way --- server.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server.ts b/server.ts index 6d1b28b8..124408cc 100644 --- a/server.ts +++ b/server.ts @@ -26,9 +26,12 @@ export function app() { // Example Express Rest API endpoints // server.get('/api/**', (req, res) => { }); // Serve static files from /browser - server.get('*.*', express.static(distFolder, { + server.get('CHANGELOG.md', express.static(distFolder, { maxAge: 0 })); + server.get('*.*', express.static(distFolder, { + maxAge: '1y' + })); // All regular routes use the Universal engine server.get('*', (req, res) => {