Skip to content

Response headers

Read x-arkor-edge to see how Arkor served a request.

View as Markdown

Every response from a project carries an x-arkor-edge header that says how it was served. It is the first thing to check when a page is slower than expected or does not show a change.

Check a response

In your browser's developer tools, open Network, select the page's request and find x-arkor-edge under the response headers.

From a terminal, send the headers a browser sends when it opens a page:

terminal
curl -s -o /dev/null -D - https://my-app.arkor.app/blog \
  -H 'sec-fetch-dest: document' -H 'sec-fetch-mode: navigate' | grep -i x-arkor-edge

The following example shows the main fields only.

output
x-arkor-edge: shell;enc=br;cont=resume;mw=miss;route=/blog;cache=fresh;seq=3

Without those two headers, the request is not a page navigation, and the page is rendered by your app instead (passthrough;reason=sec-fetch-dest).

What the value means

The value starts with how the request was served:

Starts withMeaning
shellThe page's prerendered shell was sent from the edge.
segmentA link prefetched part of a prerendered page, and the edge sent it from what the build wrote. Your app did not render it; your middleware ran first if its matcher covers the request.
payloadA client-side navigation to a page the build finished, and the edge sent the page's payload from what the build wrote. Your app did not render it; your middleware ran first if its matcher covers the request.
dataIn an app with no middleware, a client-side navigation to a page of the Pages Router that the build finished, and the edge sent the page's props from what the build wrote. Your app did not render them.
staticA file from the build, such as a /_next/static file or a file from public/.
imageAn image from /_next/image.
passthroughYour app rendered the whole response. reason says why.
errorArkor could not serve the request. reason says why.
accessAccess protection answered instead of your app: the challenge, a redirect while coming in, or a 401.
assetA /_next/static file that is not among the build's files: fetched from your app, and cached at the edge when it can be.
insights, script, vitalsA request of Web Analytics or Speed Insights, answered by Arkor.

For shell:

FieldMeaning
cont=resumeYour app streamed the rest of the page after the shell.
cont=noneThe whole page came from the edge.
cache=fresh, cache=staleThe page came from the cache, fresh or stale. Without cache, it is the shell the build made.
seqWhich generation of the page was sent. The Cache Inspector shows each one.
mw=hit, mw=missWhether your middleware ran for the request.
routeThe route the request matched.

Why your app rendered a page

passthrough;reason=Why
sec-fetch-dest, sec-fetch-mode, acceptThe request was not a page navigation: a fetch, a script, a terminal.
rscA client-side navigation, or your app's router prefetching one.
segment-prefetchA prefetch of part of a page that the edge did not send from the build: for example, the build wrote no such part for the route the request landed on, the page has been regenerated or has gone stale since the build, or the middleware changed the request's prefetch headers.
rsc-payloadA client-side navigation to a page the build finished that the edge did not send from the build: for example, the page has been regenerated or has gone stale since the build, or the middleware rewrote the request onto a page with no payload of its own.
pages-dataA client-side navigation to a page of the Pages Router whose props the build wrote, that the edge did not send from the build: for example, the page has been regenerated or has gone stale since the build, or the request was a HEAD.
actionA Server Action.
methodA method other than GET and HEAD.
head-resumedA HEAD of a page your app finishes after the shell, whose headers that part sets.
head-expiredA HEAD of a page whose cached version has expired. Your app answers it, and the next GET regenerates the page.
headA HEAD of a file the edge fetches from your origin.
botA visitor your app's htmlLimitedBots names (by default, crawlers that read only HTML), which Next.js renders in full. By default Googlebot is sent the shell.
html-limited-botsYour app's htmlLimitedBots is a pattern the edge does not run, so any visitor that sends a user agent may be one it names, and Next.js renders the page in full. The deployment log warns of it. A list of plain names is run.
bypass-cookie, bypass-queryDraft mode, or another request that must not be served from the build.
route-not-provedThe route has no prerendered shell: it renders on every request.
pattern-budgetOne of your app's routing patterns — a route, a middleware matcher, a has or missing condition — would take longer to test against this request than the edge allows, so your app routed the request itself. Repetitions side by side, such as \w+\w+, tested against a long header or path, are the usual cause. An image request is refused instead; see Errors.
middlewareYour middleware answered the request itself.
middleware-failedYour middleware failed or ran out of time before the page was sent; your app ran it instead.
regenerateThe cached page had expired, and was rendered for this request.
invalidatedYour app invalidated a tag the cached page carries with a window: revalidateTag(tag, 'max'), or an expire still ahead. Until the edge has the version rendered since, your app answers the page: it sends it stale and renders it again behind it.
subscription_inactiveThe team has no active plan. Pages are rendered by your app until it is restored.

Errors

error;reason=StatusWhat to do
not-deployed503The project has no published deployment yet. Wait for its first build to succeed.
unknown-preview404No project is served at that address. Check the project name.
unknown-hostname404The domain is not attached to any project. See Custom domains.
app-unreachable502Your app failed or ran over a limit. Check the project's Logs.
pattern-budget400An image request that one of your app's patterns — an image pattern, a middleware matcher, a has or missing condition — would take longer to test than the edge allows, most often because of a long url or header. Your app has no image optimizer of its own to take the request instead, so it is refused. Shorten the value, or simplify the pattern.