vercel/next.js

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

Open

#14,244 建立於 2020年6月16日

在 GitHub 查看
 (3 留言) (0 反應) (1 負責人)JavaScript (139,471 star) (31,066 fork)batch import
Pages Routergood first issuetype: next

描述

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.

貢獻者指南