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