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

caching of head requests #241

Open
willscott opened this issue Feb 25, 2023 · 1 comment
Open

caching of head requests #241

willscott opened this issue Feb 25, 2023 · 1 comment

Comments

@willscott
Copy link
Contributor

Right now, the stated plan from bifrost-gateway is that:

curl -X HEAD ipfs.io/ipfs/<cid>/path/to/datacurl -X GET saturn.tld/ipfs/<cid>/path/to/data?format=car&bytes=0:1023

  • lassie expects to ignore the bytes=0:1023 range request portion of the query, so you'll end up with lassie returning (in a streaming way) the full car file of result.

  • it may well be worth caching the full object at nginx - it's likely that the next request will be for most of it.

  • it may be worth investigating if there's a way that's possible to do that while only returning a truncated version of the response back to the caller

@guanzo
Copy link
Collaborator

guanzo commented Mar 16, 2023

Should be handled by https://github.com/filecoin-saturn/nginx-car-range

@guanzo guanzo removed their assignment Mar 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants