/
githubmirror
/
next.js
Обзор
Документация
Войти
/
githubmirror
/
next.js
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
canary
test/e2e/app-dir/use-cache/incremental-cache-handler.js
13 строк
353 B
Hendrik Liebau
Do not cache fetches with `'no-store'` in `"use cache"` during SSG (#80052)
03 июн 2025, 07:48
Не верифицирован
03 июн 2025, 07:48
1aba8ed
Код
Авторство
О чём код?
const { default: FileSystemCache, } = require('next/dist/server/lib/incremental-cache/file-system-cache') module.exports = class IncrementalCacheHandler extends FileSystemCache { async set(key, data, ctx) { if (ctx.fetchCache) { console.log('cache-handler set fetch cache', ctx.fetchUrl) } return super.set(key, data, ctx) } }