Skip to content

GCSHook support for cacheControl #31337

@ying-w

Description

@ying-w

Description

When a file is uploaded to GCS, by default, public files will get Cache-Control: public, max-age=3600.

I've tried setting cors for the whole bucket (didn't work) and setting Cache-Control on individual file (disappears on file re-upload from airflow)

Setting metadata for GCSHook is for different field (can't be used to set cache-control)

Use case/motivation

Allow GCSHook to set cache control rather than overriding the upload function

Related issues

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions