1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 08:43:33 +00:00

no-store cache

This commit is contained in:
Kyle Spearrin
2020-01-13 07:49:05 -05:00
parent 3f17b642b4
commit 5819023bc4
4 changed files with 9 additions and 9 deletions

View File

@@ -115,7 +115,7 @@ export class AttachmentsComponent implements OnInit {
}
a.downloading = true;
const response = await fetch(new Request(attachment.url, { cache: 'no-cache' }));
const response = await fetch(new Request(attachment.url, { cache: 'no-store' }));
if (response.status !== 200) {
this.platformUtilsService.showToast('error', null, this.i18nService.t('errorOccurred'));
a.downloading = false;
@@ -170,7 +170,7 @@ export class AttachmentsComponent implements OnInit {
this.reuploadPromises[attachment.id] = Promise.resolve().then(async () => {
// 1. Download
a.downloading = true;
const response = await fetch(new Request(attachment.url, { cache: 'no-cache' }));
const response = await fetch(new Request(attachment.url, { cache: 'no-store' }));
if (response.status !== 200) {
this.platformUtilsService.showToast('error', null, this.i18nService.t('errorOccurred'));
a.downloading = false;

View File

@@ -192,7 +192,7 @@ export class ViewComponent implements OnDestroy, OnInit {
}
a.downloading = true;
const response = await fetch(new Request(attachment.url, { cache: 'no-cache' }));
const response = await fetch(new Request(attachment.url, { cache: 'no-store' }));
if (response.status !== 200) {
this.platformUtilsService.showToast('error', null, this.i18nService.t('errorOccurred'));
a.downloading = false;