Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
aschmahmann opened this issue Jul 25, 2023 · 0 comments
Open
Labels
dif/medium Prior experience is likely helpful effort/hours Estimated to take one or several hours kind/bug A bug in existing code (including security flaws) P0 Critical: Tackled by core team ASAP topic/gateway Issues related to HTTP Gateway

Comments

@aschmahmann
Copy link
Contributor

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.

@aschmahmann aschmahmann added P0 Critical: Tackled by core team ASAP dif/medium Prior experience is likely helpful effort/hours Estimated to take one or several hours kind/bug A bug in existing code (including security flaws) topic/gateway Issues related to HTTP Gateway labels Jul 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dif/medium Prior experience is likely helpful effort/hours Estimated to take one or several hours kind/bug A bug in existing code (including security flaws) P0 Critical: Tackled by core team ASAP topic/gateway Issues related to HTTP Gateway
Projects
None yet
Development

No branches or pull requests

1 participant