Replies: 1 comment
-
Looks like it is indeed the native Node.js fetch (which is based on undici) that is doing that: if (contentLength != null && httpRequest.keepalive) {
// NOTE: keepalive is a noop outside of browser context.
} These threads have more interesting takes: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
According to this page in the docs, Keep-Alive should be enabled by default.
However, for the fetch calls coming from my API routes, neither explicitly setting that option in my
next.config.js
, nor setting the header explicitly in my fetch call headers and passingkeepalive: true
to the fetch options are able to force this to be true.Is this a known quirk of using server-side fetch?
Additional information
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions