aboutsummaryrefslogtreecommitdiff
path: root/viewer/src/store
diff options
context:
space:
mode:
authorZero~Informatique2020-02-13 17:44:34 +0100
committerZero~Informatique2020-02-13 17:44:34 +0100
commit1763c8ce725098100618079553a9ec4f79386a5d (patch)
treecceb8f2d292f59cf53c508160ffa11da1c73386b /viewer/src/store
parentee9d82d0b307dee1c9138babf954a3864a0c2f83 (diff)
downloadldgallery-1763c8ce725098100618079553a9ec4f79386a5d.tar.gz
viewer: no-cache for config.json and index.json
Diffstat (limited to 'viewer/src/store')
-rw-r--r--viewer/src/store/galleryStore.ts4
1 files changed, 2 insertions, 2 deletions
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);