Stop compressing resume data cache
## Summary Serialize the Resume Data Cache in postponed state as raw JSON instead of a zlib-compressed base64 string. This lets cache persistence implementations decide whether and how to compress postponed state, and removes the decompression path and zip-bomb exposure from Next.js. Remove the temporary experimental.disableResumeDataCacheCompression rollout flag together with the deflate and inflate branches, making raw JSON the only persisted representation. Retain serializePostponedState as the single construction path for the postponed-state wire format so HTML and data serialization cannot drift. The existing postponed-state request-body size limit remains in place. Parsing diagnostics and tests cover truncated or malformed JSON cache tails. ## Verification - pnpm build-all - pnpm exec jest packages/next/src/server/resume-data-cache/resume-data-cache.test.ts packages/next/src/server/app-render/postponed-state.test.ts --runInBand - pnpm --filter=next types <!-- NEXT_JS_LLM -->
Showing
Please
register
or
sign in
to comment