rsnext/test/e2e/app-dir/app-static
Talha Zekeriya Durmuş 16131e2d49
Fix #46621 - include status code in cache (#47096)
Fixes #46621

As explained here https://github.com/vercel/next.js/issues/46621,

> Using fetch to retrieve data inside a page on server side, the
response status code is incorrect when simply loading/reloading the
page. It looks like nextjs is caching the response without taking into
account the status code.

In following code we do not add status code information to the cache. 

https://github.com/vercel/next.js/blob/canary/packages/next/src/server/lib/patch-fetch.ts#L189-L206

However we are accessing this status code in 

https://github.com/vercel/next.js/blob/canary/packages/next/src/server/lib/patch-fetch.ts#L247-L250

---------

Co-authored-by: JJ Kasper <jj@jjsweb.site>
2023-03-13 21:37:22 -07:00
..
app Fix #46621 - include status code in cache (#47096) 2023-03-13 21:37:22 -07:00
app-static-custom-handler.test.ts update test setup 2023-02-23 09:36:18 -08:00
app-static.test.ts Fix #46621 - include status code in cache (#47096) 2023-03-13 21:37:22 -07:00
cache-handler.js Update app cache handler loading (#46290 2023-02-23 01:19:59 -08:00
next.config.js Update app cache handler loading (#46290 2023-02-23 01:19:59 -08:00