Skip to content

Commit 8713e20

Browse files
committed
remove outdated comments
1 parent 972339e commit 8713e20

File tree

3 files changed

+0
-10
lines changed

3 files changed

+0
-10
lines changed

packages/next/src/server/app-render/app-render.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,6 @@ function parseRequestHeaders(
301301
headers: IncomingHttpHeaders,
302302
options: ParseRequestHeadersOptions
303303
): ParsedRequestHeaders {
304-
// dev warmup requests are treated as prefetch RSC requests
305304
// runtime prefetch requests are *not* treated as prefetch requests
306305
// (TODO: this is confusing, we should refactor this to express this better)
307306
const isPrefetchRequest = headers[NEXT_ROUTER_PREFETCH_HEADER] === '1'
@@ -310,7 +309,6 @@ function parseRequestHeaders(
310309

311310
const isHmrRefresh = headers[NEXT_HMR_REFRESH_HEADER] !== undefined
312311

313-
// dev warmup requests are treated as prefetch RSC requests
314312
const isRSCRequest = headers[RSC_HEADER] !== undefined
315313

316314
const shouldProvideFlightRouterState =

packages/next/src/server/lib/patch-fetch.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,6 @@ export function createPatchedFetcher(
283283
const workStore = workAsyncStorage.getStore()
284284
const workUnitStore = workUnitAsyncStorage.getStore()
285285

286-
// During static generation we track cache reads so we can reason about when they fill
287286
let cacheSignal = workUnitStore ? getCacheSignal(workUnitStore) : null
288287
if (cacheSignal) {
289288
cacheSignal.beginRead()

test/development/app-dir/cache-components-dev-warmup/app/simple/page.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,6 @@ export default async function Page() {
1212
return (
1313
<main>
1414
<h1>Warmup Dev Renders</h1>
15-
<p>
16-
In Dev when cacheComponents is enabled requests are preceded by a cache
17-
warming prerender. Without PPR this prerender only includes up to the
18-
nearest Loading boundary (loading.tsx) and will never include the Page
19-
itself. When PPR is enabled it will include everything that is
20-
prerenderable including the page if appropriate.
21-
</p>
2215

2316
<CachedData label="page" cacheKey={CACHE_KEY} />
2417
<SuccessiveCachedData label="page" cacheKey={CACHE_KEY} />

0 commit comments

Comments
 (0)