Skip to content

Commit 1974965

Browse files
committed
fix: handle APP_PAGE cache kind when checking tag staleness
1 parent 3791aa9 commit 1974965

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/run/handlers/cache.cts

+5-1
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,11 @@ export class NetlifyCacheHandler implements CacheHandler {
338338

339339
if (cacheEntry.value?.kind === 'FETCH') {
340340
cacheTags = [...tags, ...softTags]
341-
} else if (cacheEntry.value?.kind === 'PAGE' || cacheEntry.value?.kind === 'ROUTE') {
341+
} else if (
342+
cacheEntry.value?.kind === 'PAGE' ||
343+
cacheEntry.value?.kind === 'APP_PAGE' ||
344+
cacheEntry.value?.kind === 'ROUTE'
345+
) {
342346
cacheTags = (cacheEntry.value.headers?.[NEXT_CACHE_TAGS_HEADER] as string)?.split(',') || []
343347
} else {
344348
return false

0 commit comments

Comments
 (0)