Skip to content

Commit

Permalink
Merge pull request #5055 from kiva/PF-11-ui-surrogate-keys
Browse files Browse the repository at this point in the history
fix: add surrogate keys for ui assets
  • Loading branch information
mcstover authored Nov 1, 2023
2 parents c5a5bd5 + 310defa commit 0a5bb85
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ function setHeaders(res, path) {
res.header('Access-Control-Allow-Origin', `https://${config.app.host}`);
}
res.header('Access-Control-Allow-Headers', 'Origin, X-Requested-With, Content-Type, Accept');
res.header('Surrogate-Key', 'ui-all ui-static all-assets');
}

app.use('/static', express.static('dist/static', {
Expand Down

0 comments on commit 0a5bb85

Please sign in to comment.