GoogleCloudPlatform / GoogleCloudPlatform/gcsfuse

How to send Custom Headers - No-Cache for example?

Open
#570 4 comments 0 reactions 0 assignees View on GitHub
feature request
Dominant language
Go
Stars
2.3k
Forks
510
Avg merge
2d 17h
Merged PRs (30d)
35

Description

How to send headers with metadata to disable the default 1 hour caching of uploaded files to GCS?

**Standard Example**

'Content-Type' => 'text/json',
'acl' => 'public-read',
'enable_cache' => false,
'read_cache_expiry_seconds' => 0,
'Cache-Control' => 'private, max-age=0,no-transform'

**Usecase**
We use Google Cloud Storage as repositories for various web-apps on GAE that often need to have certain specific images/json files modified quickly without having to wait 1 hour until the cache clears (_like on regular filesystems_).

I know applications like `rclone` offers a `--header-upload ` flag with GCS already so it should be possible?

Have i missed something in the documentation?

Thanks for a great plugin!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.