aboutsummaryrefslogtreecommitdiff
path: root/viewer/src
diff options
context:
space:
mode:
Diffstat (limited to 'viewer/src')
-rw-r--r--viewer/src/@types/gallery.d.ts1
-rw-r--r--viewer/src/store/galleryStore.ts4
2 files changed, 2 insertions, 3 deletions
diff --git a/viewer/src/@types/gallery.d.ts b/viewer/src/@types/gallery.d.ts
index 865f621..44eecf6 100644
--- a/viewer/src/@types/gallery.d.ts
+++ b/viewer/src/@types/gallery.d.ts
@@ -19,7 +19,6 @@
19 19
20declare namespace Gallery { 20declare namespace Gallery {
21 interface Config { 21 interface Config {
22 generationTimestamp: number,
23 galleryRoot: string, 22 galleryRoot: string,
24 } 23 }
25 24
diff --git a/viewer/src/store/galleryStore.ts b/viewer/src/store/galleryStore.ts
index bcd4bc9..6f5f0ad 100644
--- a/viewer/src/store/galleryStore.ts
+++ b/viewer/src/store/galleryStore.ts
@@ -66,7 +66,7 @@ export default class GalleryStore extends VuexModule {
66 66
67 // Fetches the gallery's JSON config 67 // Fetches the gallery's JSON config
68 @action async fetchConfig() { 68 @action async fetchConfig() {
69 return fetch(`${process.env.VUE_APP_DATA_URL}config.json`) 69 return fetch(`${process.env.VUE_APP_DATA_URL}config.json`, { cache: "no-cache" })
70 .then(config => config.json()) 70 .then(config => config.json())
71 .then(this.setConfig); 71 .then(this.setConfig);
72 } 72 }
@@ -75,7 +75,7 @@ export default class GalleryStore extends VuexModule {
75 @action async fetchGalleryItems() { 75 @action async fetchGalleryItems() {
76 const root = this.config?.galleryRoot ?? ''; 76 const root = this.config?.galleryRoot ?? '';
77 const timestamp = this.config?.generationTimestamp ?? 0; 77 const timestamp = this.config?.generationTimestamp ?? 0;
78 return fetch(`${process.env.VUE_APP_DATA_URL}${root}index.json?${timestamp}`) 78 return fetch(`${process.env.VUE_APP_DATA_URL}${root}index.json`, { cache: "no-cache" })
79 .then(response => response.json()) 79 .then(response => response.json())
80 .then(this.setGalleryItemsRoot) 80 .then(this.setGalleryItemsRoot)
81 .then(this.indexTags); 81 .then(this.indexTags);