Skip to content

Add PROXY_CACHE_USE_STALE env variable to configure proxy_cache_use_stale nginx parameter. #437

@mhbahmani

Description

@mhbahmani

Hi,

Feature Overview

I was using nginx-s3-gateway. There are scenarios where the S3 is returning a 404 error (due to the requested file not being present), but I prefer that the nginx-s3-gateway gives the latest version. I added http_404 to proxy_cache_use_stale, and it seems to solve my problem.
I forked the project, and I'm working on adding this feature by making proxy_cache_use_stale configurable using PROXY_CACHE_USE_STALE environment variable.

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