mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
no-store cache
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user