RangerMauve / hypercore-fetch

Implementation of Fetch that uses the Hyper SDK for loading p2p content
MIT License
36 stars 12 forks source link

Pass `Date` header in PUT request to override file mtime #96

Closed josephmturner closed 8 months ago

josephmturner commented 10 months ago

Please double-check that Date is the correct header to use here. I see that Date is listed as a forbidden header.

This feature makes it easy for hyperdrive.el to mirror a directory of files, skipping files which have not been updated since the last upload.

RangerMauve commented 8 months ago

How about we use Last-Modified instead? It's more directly related to caching.

RangerMauve commented 8 months ago

Released new version but changed it to use the Last-Modified header instead