add cache control to prevent cache
This commit is contained in:
parent
6303f2d606
commit
1796fae8a9
|
@ -162,6 +162,7 @@ const getPublicFiles = async (
|
||||||
sinceTime: time,
|
sinceTime: time,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
'Cache-Control': 'no-cache',
|
||||||
'X-Auth-Access-Token': token,
|
'X-Auth-Access-Token': token,
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
@ -207,7 +208,7 @@ export const getPublicCollection = async (
|
||||||
const resp = await HTTPService.get(
|
const resp = await HTTPService.get(
|
||||||
`${ENDPOINT}/public-collection/info`,
|
`${ENDPOINT}/public-collection/info`,
|
||||||
null,
|
null,
|
||||||
{ 'X-Auth-Access-Token': token }
|
{ 'Cache-Control': 'no-cache', 'X-Auth-Access-Token': token }
|
||||||
);
|
);
|
||||||
const fetchedCollection = resp.data?.collection;
|
const fetchedCollection = resp.data?.collection;
|
||||||
const collectionName = await decryptCollectionName(
|
const collectionName = await decryptCollectionName(
|
||||||
|
|
Loading…
Reference in a new issue