Skip to content

gateway: _redirects not being applied with If-None-Match headers #415

@aschmahmann

Description

@aschmahmann

When loading websites via boxo/gateway implementation that use the _redirects feature (e.g. single page applications) browsers will sometimes give a 404 for the page instead of appropriately following the _redirects directive.

This happens due to browsers using the If-None-Match header to optimize page loads if the data may already be cached locally. However, due to a regression when doing a query with If-None-Match the _redirects directives are ignored and as a result the user sees a 404.

This should be fixed by #412 however if people are stuck on this problem in the meanwhile it can be circumvented by putting a proxy in front of the gateway that drops the If-None-Match header.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P0Critical: Tackled by core team ASAPdif/mediumPrior experience is likely helpfuleffort/hoursEstimated to take one or several hourskind/bugA bug in existing code (including security flaws)topic/gatewayIssues related to HTTP Gateway

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions