1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 08:13:42 +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

@@ -795,7 +795,7 @@ export class CipherService implements CipherServiceAbstraction {
private async shareAttachmentWithServer(attachmentView: AttachmentView, cipherId: string,
organizationId: string): Promise<any> {
const attachmentResponse = await this.apiService.nativeFetch(
new Request(attachmentView.url, { cache: 'no-cache' }));
new Request(attachmentView.url, { cache: 'no-store' }));
if (attachmentResponse.status !== 200) {
throw Error('Failed to download attachment: ' + attachmentResponse.status.toString());
}