Skip to content

Commit

Permalink
fix another way
Browse files Browse the repository at this point in the history
  • Loading branch information
KeithKelleher committed Oct 3, 2020
1 parent fbd3471 commit 57badc0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 57badc0

Please sign in to comment.