duna-oss / flystorage

Flystorage; File storage abstraction for Node / TypeScript
https://flystorage.dev/
166 stars 10 forks source link

Add support for cache-control headers for providers where it is possible #36

Closed awensaunders closed 1 month ago

awensaunders commented 2 months ago

Similar to the mimeType option, I would like to be able to set cache-control on blobs where it's possible to do so.

e.g., on https://github.com/duna-oss/flystorage/blob/2271adac9a0129f0f15afbf149aec5873fc85d8f/packages/azure-storage-blob/src/azure-storage-blob.ts#L70, we would set the cache-control header.

If you'd like, I could write up a PR