Disable page caching on scan and gallery pages
This commit is contained in:
parent
6b797a42f8
commit
e6ac2d8651
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "v3.accords-library.com",
|
||||
"version": "3.0.0-beta.8",
|
||||
"version": "3.0.0-beta.9",
|
||||
"scripts": {
|
||||
"dev": "astro dev",
|
||||
"start": "astro dev",
|
||||
|
|
|
@ -200,14 +200,14 @@ export class PageCache {
|
|||
case SDKEndpointNames.getCollectibleGallery:
|
||||
return [`/collectibles/${change.slug}/gallery`];
|
||||
|
||||
case SDKEndpointNames.getCollectibleGalleryImage:
|
||||
return [`/collectibles/${change.slug}/gallery/${change.index}`];
|
||||
// case SDKEndpointNames.getCollectibleGalleryImage:
|
||||
// return [`/collectibles/${change.slug}/gallery/${change.index}`];
|
||||
|
||||
case SDKEndpointNames.getCollectibleScans:
|
||||
return [`/collectibles/${change.slug}/scans`];
|
||||
|
||||
case SDKEndpointNames.getCollectibleScanPage:
|
||||
return [`/collectibles/${change.slug}/scans/${change.index}`];
|
||||
// case SDKEndpointNames.getCollectibleScanPage:
|
||||
// return [`/collectibles/${change.slug}/scans/${change.index}`];
|
||||
|
||||
case SDKEndpointNames.getPage:
|
||||
return [`/pages/${change.slug}`];
|
||||
|
|
|
@ -7,6 +7,8 @@ import { formatInlineTitle, formatRichTextToString } from "src/utils/format";
|
|||
import { fetchOr404 } from "src/utils/responses";
|
||||
import { getFileIcon } from "src/utils/attributes";
|
||||
|
||||
Astro.locals.pageCaching = false;
|
||||
|
||||
const slug = Astro.params.slug!;
|
||||
const index = Astro.params.index!;
|
||||
const { getLocalizedUrl, getLocalizedMatch, t, formatDate } = await getI18n(
|
||||
|
|
|
@ -6,6 +6,8 @@ import { payload } from "src/services";
|
|||
import { formatInlineTitle, formatRichTextToString } from "src/utils/format";
|
||||
import { fetchOr404 } from "src/utils/responses";
|
||||
|
||||
Astro.locals.pageCaching = false;
|
||||
|
||||
const slug = Astro.params.slug!;
|
||||
const index = Astro.params.index!;
|
||||
const { formatScanIndexShort, getLocalizedMatch, getLocalizedUrl } = await getI18n(
|
||||
|
|
Loading…
Reference in New Issue