From 58c84f6472be2acfd30f329c16444aa8180d13dd Mon Sep 17 00:00:00 2001 From: James Magahern Date: Sat, 23 Mar 2024 16:49:33 -0700 Subject: [PATCH] MBIMFetchAttachmentOperation: Add cache headers --- kordophone/Bridge/Operations/MBIMFetchAttachmentOperation.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kordophone/Bridge/Operations/MBIMFetchAttachmentOperation.m b/kordophone/Bridge/Operations/MBIMFetchAttachmentOperation.m index be39d9f..0135d1a 100644 --- a/kordophone/Bridge/Operations/MBIMFetchAttachmentOperation.m +++ b/kordophone/Bridge/Operations/MBIMFetchAttachmentOperation.m @@ -124,7 +124,9 @@ mimeType = [NSString stringWithFormat:@"image/%@", extension]; } - response = [[MBIMDataResponse alloc] initWithData:responseData contentType:mimeType]; + MBIMDataResponse *dataResponse = [[MBIMDataResponse alloc] initWithData:responseData contentType:mimeType]; + dataResponse.httpHeaders[@"Cache-Control"] = @"public, immutable, max-age=31536000"; + response = dataResponse; } while (0); self.serverCompletionBlock(response);