vercel/next.js

ISG with GIP in _app overrides cache-control of ISG page

Open

#14.244 geöffnet am 16. Juni 2020

Auf GitHub ansehen
 (4 Kommentare) (0 Reaktionen) (1 zugewiesene Person)JavaScript (31.066 Forks)batch import
Pages Routergood first issuetype: next

Repository-Metriken

Stars
 (139.471 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 3T 19h) (399 gemergte PRs in 30 T)

Beschreibung

Bug report

When using the unstable_revalidate param with ISG, a header set by _app should never win.

Additional context

From @lfades:

Update: this is currently not the case, SSG finishes the request before it gets to _app.

the custom _app in the Next.js site was setting a header, but that causes an error because the request was sent, this happens in production and with next start, but in dev you don't get any error.

Contributor Guide