gateway: support for UnixFS 1.5 Last-Modified/If-Modified-Since with remote CAR backend #664
Labels
dif/medium
Prior experience is likely helpful
effort/days
Estimated to take multiple days, but less than a week
help wanted
Seeking public contribution on this issue
kind/enhancement
A net-new feature or improvement to an existing feature
P2
Medium: Good to have, but can wait until someone steps up
topic/gateway
Issues related to HTTP Gateway
#659 introduced support for returning optional UnixFS 1.5 mtime value as
Last-Modified
header, and returning304 Not Modified
if it is matchingIf-Modified-Since
sent with a file request.This
gateway/backend_blocks.go
(used by Kubo and Rainbow)gateway/backend_car.go
(used in boxo/gateway conformance tests here and in Rainbow withRAINBOW_REMOTE_BACKENDS_MODE=car
)Remaining work here:
loadTerminalEntity
fromgateway/backend_car.go
to be able to readmtime
from the root dag-pb block of requested file, update any upstream libraries if necessaryLast-Modified
on deserialized GET responsesLast-Modified
on deserialized HEAD responsesIf-Modified-Since
(UnixFS 1.5 file only)Get
andHead
andContentPathMetadata
needs to be updated there as well -- this is why conformance tests need to be added after we have car backend implemented first)The text was updated successfully, but these errors were encountered: