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 1dc3234 commit 56e5c3cCopy full SHA for 56e5c3c
src/lib/cache/http.ts
@@ -26,9 +26,12 @@ export function parseCacheResponse(response: Response): {
26
const cacheControlHeader = response.headers.get('cache-control');
27
const cacheControl = cacheControlHeader ? parseCacheControl(cacheControlHeader) : null;
28
29
+ const cacheTagHeader = response.headers.get('x-gitbook-cache-tag');
30
+ const tags = !cacheTagHeader ? [] : cacheTagHeader.split(',');
31
+
32
const entry = {
33
ttl: 60 * 60 * 24,
- tags: [],
34
+ tags,
35
};
36
37
if (cacheControl && cacheControl['max-age']) {
0 commit comments