Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Commit

Permalink
Use temporary instead of permanent redirect during login
Browse files Browse the repository at this point in the history
When using 301 redirect it gets cached in Chrome and next time URL is opened server isn't even hit.
  • Loading branch information
vgrichina authored May 11, 2020
1 parent 7e3f8b1 commit 1a5754f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/capture-login-success.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const payload = (fields, { port, hostname }, redirectUrl) => new Promise((resolv
resolve(results);
});
} else {
res.writeHead(301, { Location: redirectUrl });
res.writeHead(302, { Location: redirectUrl });
res.end();
}
} catch (e) {
Expand Down

0 comments on commit 1a5754f

Please sign in to comment.