Response headers
Read x-arkor-edge to see how Arkor served a request.
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-edgeThe following example shows the main fields only.
output
x-arkor-edge: shell;enc=br;cont=resume;mw=miss;route=/blog;cache=fresh;seq=3Without 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 with | Meaning |
|---|---|
shell | The page's prerendered shell was sent from the edge. |
segment | A 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. |
payload | A 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. |
data | In 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. |
static | A file from the build, such as a /_next/static file or a file from public/. |
image | An image from /_next/image. |
passthrough | Your app rendered the whole response. reason says why. |
error | Arkor could not serve the request. reason says why. |
access | Access protection answered instead of your app: the challenge, a redirect while coming in, or a 401. |
asset | A /_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, vitals | A request of Web Analytics or Speed Insights, answered by Arkor. |
For shell:
| Field | Meaning |
|---|---|
cont=resume | Your app streamed the rest of the page after the shell. |
cont=none | The whole page came from the edge. |
cache=fresh, cache=stale | The page came from the cache, fresh or stale. Without cache, it is the shell the build made. |
seq | Which generation of the page was sent. The Cache Inspector shows each one. |
mw=hit, mw=miss | Whether your middleware ran for the request. |
route | The route the request matched. |
Why your app rendered a page
passthrough;reason= | Why |
|---|---|
sec-fetch-dest, sec-fetch-mode, accept | The request was not a page navigation: a fetch, a script, a terminal. |
rsc | A client-side navigation, or your app's router prefetching one. |
segment-prefetch | A 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-payload | A 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-data | A 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. |
action | A Server Action. |
method | A method other than GET and HEAD. |
head-resumed | A HEAD of a page your app finishes after the shell, whose headers that part sets. |
head-expired | A HEAD of a page whose cached version has expired. Your app answers it, and the next GET regenerates the page. |
head | A HEAD of a file the edge fetches from your origin. |
bot | A 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-bots | Your 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-query | Draft mode, or another request that must not be served from the build. |
route-not-proved | The route has no prerendered shell: it renders on every request. |
pattern-budget | One 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. |
middleware | Your middleware answered the request itself. |
middleware-failed | Your middleware failed or ran out of time before the page was sent; your app ran it instead. |
regenerate | The cached page had expired, and was rendered for this request. |
invalidated | Your 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_inactive | The team has no active plan. Pages are rendered by your app until it is restored. |
Errors
error;reason= | Status | What to do |
|---|---|---|
not-deployed | 503 | The project has no published deployment yet. Wait for its first build to succeed. |
unknown-preview | 404 | No project is served at that address. Check the project name. |
unknown-hostname | 404 | The domain is not attached to any project. See Custom domains. |
app-unreachable | 502 | Your app failed or ran over a limit. Check the project's Logs. |
pattern-budget | 400 | An 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. |