We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a3166a commit 77bfe49Copy full SHA for 77bfe49
middleware/record-redirect.js
@@ -5,8 +5,8 @@ export default function recordRedirects(req, res, next) {
5
if (!req.hydro.maySend()) return next()
6
7
res.on('finish', async function recordRedirect() {
8
- // We definitely don't want 304
9
- if (![301, 302, 303, 307, 308].includes(res.statusCode)) return
+ // Basically only the "permanent" ones
+ if (![301, 308].includes(res.statusCode)) return
10
const schemaName = hydroNames.redirect
11
const redirectEvent = {
12
context: {
0 commit comments