From 1796fae8a927acccb8034f5814734c503f8de705 Mon Sep 17 00:00:00 2001 From: Abhinav Date: Wed, 19 Jan 2022 21:51:22 +0530 Subject: [PATCH] add cache control to prevent cache --- src/services/publicCollectionService.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/services/publicCollectionService.ts b/src/services/publicCollectionService.ts index 52eedca1d..3e5ffcce0 100644 --- a/src/services/publicCollectionService.ts +++ b/src/services/publicCollectionService.ts @@ -162,6 +162,7 @@ const getPublicFiles = async ( sinceTime: time, }, { + 'Cache-Control': 'no-cache', 'X-Auth-Access-Token': token, } ); @@ -207,7 +208,7 @@ export const getPublicCollection = async ( const resp = await HTTPService.get( `${ENDPOINT}/public-collection/info`, null, - { 'X-Auth-Access-Token': token } + { 'Cache-Control': 'no-cache', 'X-Auth-Access-Token': token } ); const fetchedCollection = resp.data?.collection; const collectionName = await decryptCollectionName(