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

fix(gw): Etag and If-None-Match #8891

Merged
merged 1 commit into from
Apr 19, 2022
Merged

fix(gw): Etag and If-None-Match #8891

merged 1 commit into from
Apr 19, 2022

Conversation

lidel
Copy link
Member

@lidel lidel commented Apr 15, 2022

Part of #8717 / ipfs/in-web-browsers#132

Improves the way we handle If-None-Match header:

  • Fixed support for more than one Etag passed in If-None-Match
  • Match both strong and weak Etags to maximize caching across various HTTP clients and libraries (some send weak Etags by default)
  • Support for wildcard If-None-Match: * (e.g. when client has a dir listing and does not care if there is a newer version)
  • End-to-end tests for If-None-Match behavior

Closes #3861 (we've been setting correct Etag on /ipns/ in master already, but this PR adds tests)

Improves the way we handle If-None-Match header:
- Support for more than one Etag passed in If-None-Match
- Match both strong and weak Etags to maximize caching across
  various HTTP clients and libraries (some send weak Etags by default)
- Support for wildcard '*'
- Tests for If-None-Match behavior
@lidel lidel added this to the go-ipfs 0.13 milestone Apr 15, 2022
@lidel lidel changed the title feat(gw): improved If-None-Match support fix(gw): improved If-None-Match support Apr 15, 2022
@lidel lidel changed the title fix(gw): improved If-None-Match support fix(gw): Etag and If-None-Match Apr 15, 2022
@lidel lidel marked this pull request as ready for review April 15, 2022 17:18
@lidel lidel requested a review from Jorropo April 15, 2022 18:13
@lidel lidel merged commit 67fdb6e into master Apr 19, 2022
@lidel lidel deleted the fix/match-weak-etag branch April 19, 2022 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

/ipns/ should redirect to /ipfs/ and/or cache
2 participants