Skip to content

GCS caching means versions are out of date #61

@jchesterpivotal

Description

@jchesterpivotal

GCS sets a 3600 second max-age for objects uploaded to GCS buckets:

Unless otherwise specified, the Cache-Control setting for publicly accessible objects is 3600 seconds ... If you allow caching, at download time you might see older versions of objects, even after uploading a newer replacement object, because the older objects remain in the cache for a period of time.

This means that when I put to a semver-resource, I might not be able to successfully get that version back for up to an hour.

This causes some fascinating misbehaviour. The only current workaround is to manually set Cache-Control headers in the bucket. But this means that I have a task following around after every put, which isn't very convenient.

Google suggest setting Cache-Control: private to prevent caching. Can we please see if this improves behaviour?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions