Skip to content

Respect cache-control request header #500

@jarojasm95

Description

@jarojasm95

Feature Overview

Hello, I would like the nginx s3 gateway to bypass its local cache when the request header cache-control is set to no-cache

The use case is simple, using force refresh on a browser causes the cache-control=no-cache header however nginx s3 gateway will still use

Alternatives Considered

I have tried disabling the cache completely, but I don't necessarily want that either. Respecting the cache-control header value to decide on cache freshness seems like a correct utilization of the header

Additional Context

It seems vanilla nginx already supports this via proxy_cache_bypass

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions