We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent afc4bd4 commit c0e9c49Copy full SHA for c0e9c49
packages/gitbook/openNext/incrementalCache.ts
@@ -48,7 +48,13 @@ class GitbookIncrementalCache implements IncrementalCache {
48
const result = (await localCacheEntry.json()) as WithLastModified<
49
CacheValue<CacheType>
50
>;
51
- return this.returnNullOn404(result);
+ return this.returnNullOn404({
52
+ ...result,
53
+ // Because we use tag cache and also invalidate them every time,
54
+ // if we get a cache hit, we don't need to check the tag cache as we already know it's not been revalidated
55
+ // this should improve performance even further, and reduce costs
56
+ shouldBypassTagCache: true,
57
+ });
58
}
59
60
const r2Object = await r2.get(cacheKey);
0 commit comments