rsnext/test/e2e/app-dir/app-static/app
Alexander Savelyev 269020a028
Disable 2mb limit for custom incrementalCacheHandler (#59976)
### Fixing a bug

### What?

Disable 2MB limit for custom incrementalCacheHandler

### Why?

The limit is necessary because `FetchCache` has a 2MB limit, but it
seems there was a miscommunication regarding the key coincidence, where
`fetchCache` is a flag indicating that the method is called from fetch,
rather than indicating that the `FetchCache` Provider is currently being
used.

We do not use Vercel, and as I understand it, we do not have the
opportunity to use this functionality.

In any case, it is more important for us to increase the limits, and in
some cases, using a file storage is even preferable.

### How?

I have created a flag that determines whether the use of `FetchCache` is
possible at least in theory - if no custom provider is passed, and
additionally configured it so that it is not an implementation of
`FetchCache` as a protection against special individuals (*like me :)*).

If everything is fine, I will write proper tests.

Also, I would like to recommend making `FileSystemCache` public (_i.e.
support it as public functionality_) so that it can be imported and
extended or simply used to fix only it.

Fixes #48324 (partially)

---------

Co-authored-by: JJ Kasper <jj@jjsweb.site>
2024-01-04 15:12:43 -08:00
..
(new) Update page config APIs (#41580) 2022-10-20 02:39:25 +02:00
api Disable 2mb limit for custom incrementalCacheHandler (#59976) 2024-01-04 15:12:43 -08:00
articles/[slug] Fix notFound status code with ISR in app (#55542) 2023-09-18 14:35:00 -05:00
blog/[author] Ensure we validate revalidate configs properly (#59822) 2023-12-20 17:16:35 -06:00
default-cache add a "skip" cache type to verbose logging mode (#53275) 2023-07-28 20:01:31 +00:00
dynamic-error/[id] Update error message for dynamic = "error" (#45432) 2023-02-01 11:20:35 +00:00
dynamic-no-gen-params/[slug] Fix revalidate check in client component (#41917) 2022-10-26 17:24:38 -07:00
dynamic-no-gen-params-ssr/[slug] Update page config APIs (#41580) 2022-10-20 02:39:25 +02:00
fetch-no-cache Fix fetchCache and no-store handling (#49638) 2023-05-10 20:42:25 -07:00
flight/[slug] Fix fallback detection logic when multiple generateStaticParams are needed (#47982) 2023-04-07 19:56:40 +02:00
force-cache Disable 2mb limit for custom incrementalCacheHandler (#59976) 2024-01-04 15:12:43 -08:00
force-dynamic-catch-all/[slug]/[[...id]] Add test for force-dynamic and catch-all routes (#47418 2023-03-23 15:53:51 +01:00
force-dynamic-no-prerender/[id] Ensure force-dynamic is honored during build (#45015) 2023-01-18 11:24:48 -08:00
force-dynamic-prerender/[slug] Marks app paths in dev as supporting dynamic html (#46848) 2023-03-21 20:55:04 +00:00
force-no-store Fix fetchCache config and On-Demand Revalidate handling (#47803) 2023-04-01 21:15:13 -07:00
force-static Add force-static handling for app dir (#43061) 2022-11-18 09:47:44 -08:00
force-static-fetch-no-store Fix force-static and fetch no-store cases (#59549) 2023-12-12 16:08:03 -08:00
gen-params-dynamic/[slug] Enable PPR for dynamic = "force-dynamic" (#58779) 2023-12-06 01:10:00 +00:00
gen-params-dynamic-revalidate/[slug] Enable PPR for dynamic = "force-dynamic" (#58779) 2023-12-06 01:10:00 +00:00
hooks Should not show no index for client rendering bailout (#59531) 2023-12-13 11:03:11 +01:00
isr-error-handling Fix app ISR error handling (#57332) 2023-10-24 09:38:30 -07:00
no-store cache: add unstable_noStore API (#56930) 2023-10-17 14:52:46 +00:00
partial-gen-params/[lang] Ensure WebSocket is polyfilled for node runtime as well (#48924) 2023-04-28 15:48:14 -05:00
partial-gen-params-no-additional-lang/[lang] Update generateStaticParams handling with fetch cache (#46906) 2023-03-07 22:59:06 -08:00
partial-gen-params-no-additional-slug/[lang] Update generateStaticParams handling with fetch cache (#46906) 2023-03-07 22:59:06 -08:00
react-fetch-deduping-edge Fix react fetch deduping without next cache (#50187) 2023-05-22 16:13:02 -07:00
react-fetch-deduping-node Fix react fetch deduping without next cache (#50187) 2023-05-22 16:13:02 -07:00
response-url Add url to patched fetch response (#51665) 2023-06-23 21:53:17 +00:00
route-handler Ensure initialHeaders are normalized (#49643) 2023-05-10 21:44:11 -07:00
route-handler-edge/revalidate-360 Add updated app dir cache handling (#48516) 2023-04-19 18:12:21 -04:00
ssg-draft-mode/[[...route]] Update cache handling in draft mode (#51663) 2023-06-22 14:03:11 -07:00
ssr-auto Update cache handling for app (#43659) 2022-12-02 23:32:49 -08:00
ssr-forced Update page config APIs (#41580) 2022-10-20 02:39:25 +02:00
stale-cache-serving Revert "fix: fetch() behavior when "dynamic" is "force-dynamic" (#58735) 2023-11-22 18:49:20 +00:00
stale-cache-serving-edge Fix stale revalidate stream handling (#55978) 2023-09-25 20:50:00 +00:00
static-to-dynamic-error/[id] Add proper error when app path switches static to dynamic (#44989) 2023-01-18 10:24:35 -08:00
static-to-dynamic-error-forced/[id] Add proper error when app path switches static to dynamic (#44989) 2023-01-18 10:24:35 -08:00
variable-config-revalidate/revalidate-3 Fix fetch cache config and fetch revalidates (#47573) 2023-03-27 13:08:23 -07:00
variable-revalidate Enable PPR for dynamic = "force-dynamic" (#58779) 2023-12-06 01:10:00 +00:00
variable-revalidate-edge Enable PPR for dynamic = "force-dynamic" (#58779) 2023-12-06 01:10:00 +00:00
layout.js Drop legacy RSC server and client extension (#40692) 2022-09-19 20:24:41 +00:00
page.js Fix revalidate: false detection in app (#49473) 2023-05-08 13:19:41 -07:00