Recently I added two redirect rules to my site hosted at https://www.kevlatus.de. Unfortunately, they return code 500 when hitting the page for the first time in a while (at least that’s the pattern, which I observed).
After waiting for a couple of minutes the redirect works perfectly fine. Can someone explain me, what’s happening here?
If it helps, here is the x-nf-request-id for a failing request: bbcc79f4-bb19-4612-809a-38ced662f214
and the content of my netlify.toml
[[headers]] for = "/*" [headers.values] X-Frame-Options = "DENY" X-XSS-Protection = "1; mode=block" X-Content-Type-Options = "nosniff" Content-Security-Policy = "default-src 'self' *.typekit.net *.kevlatus.de 'unsafe-inline'; img-src https://*; media-src https://*;" [[redirects]] from = "/a/js/script.js" to = "https://plausible.io/js/plausible.outbound-links.js" status = 200 [[redirects]] from = "/a/api/event" to = "https://plausible.io/api/event" status = 202
PS: I was following this guide