From 663e0b978c2bba7e50bfbba1b9dca372d0ebd9a0 Mon Sep 17 00:00:00 2001 From: Derek Soucie Date: Wed, 18 Oct 2017 19:38:26 -0700 Subject: [PATCH] Unauthenticated redirect status changed to 302. Previous status of 301 gets cached by some browsers and will redirect even after user is authed. --- server/src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/index.js b/server/src/index.js index 2de2159..f96c010 100644 --- a/server/src/index.js +++ b/server/src/index.js @@ -38,7 +38,7 @@ app.get('*', (req, res) => { const content = renderer(req, store, context); if (context.url) { - return res.redirect(301, context.url); + return res.redirect(302, context.url); } if (context.notFound) { res.status(404);