Skip to content

Commit

Permalink
fix(payments-server): update meta tags in index.html for each request
Browse files Browse the repository at this point in the history
fixes #3625
  • Loading branch information
lmorchard committed Dec 10, 2019
1 parent 8ae6786 commit 8cf3866
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/fxa-payments-server/server/lib/server.js
Expand Up @@ -205,15 +205,10 @@ module.exports = () => {
{ encoding: 'UTF-8' }
);

const renderedStaticHtml = injectHtmlConfig(
STATIC_INDEX_HTML,
CLIENT_CONFIG,
{}
);
INDEX_ROUTES.forEach(route => {
// FIXME: should set ETag, Not-Modified:
app.get(route, (req, res) => {
res.send(renderedStaticHtml);
res.send(injectHtmlConfig(STATIC_INDEX_HTML, CLIENT_CONFIG, {}));
});
});

Expand Down

0 comments on commit 8cf3866

Please sign in to comment.