Private
Public Access
1
0

MBIMFetchAttachmentOperation: Add cache headers

This commit is contained in:
2024-03-23 16:49:33 -07:00
parent 413fe338ca
commit 58c84f6472

View File

@@ -124,7 +124,9 @@
mimeType = [NSString stringWithFormat:@"image/%@", extension]; 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); } while (0);
self.serverCompletionBlock(response); self.serverCompletionBlock(response);