next.js
b82ada30 - guarantee cache busting param correctness (#80381)

Commit
220 days ago
guarantee cache busting param correctness (#80381) [RSC validation](https://github.com/vercel/next.js/pull/80157) requires `_rsc` search param to match the RSC [hash](https://github.com/vercel/next.js/blob/06-10-remove_existing_cache_busting_param_and_add_fresh_one/packages/next/src/shared/lib/router/utils/cache-busting-search-param.ts#L3) of request headers. To guarantee any request initiated from Next.js meets the criteria, we are going to remove existing cache busting param and add fresh one **just in case the pre-existing param does not match the hash**. Existing E2E tests should cover this change. --------- Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com>
Author
Parents
Loading