Closed jacobwegner closed 7 years ago
@brosner any thoughts about how we want to implement this? Perhaps add a GAPC_STORAGE
key for cacheControl
?
@brosner: would like to revisit your thoughts on this and #4 for the next release
I am in favor of adding a setting to control this behavior. cache_control
key in GAPC_STORAGE
sounds right to me.
By default, GCS caches any publicly accessible objects for 3600 seconds.
Especially if a developer is trying to update an existing object (see #4), it may not be desirable to have objects with that long of a cache value.
Either add an option to
GoogleCloudStorage
to specify cache headers or an additional backend that supports custom cache headers.