etix / mirrorbits

Mirrorbits is a geographical download redirector written in Go for distributing files efficiently across a set of mirrors.
MIT License
497 stars 90 forks source link

Add support for If-Modified-Since #115

Closed lazka closed 2 months ago

lazka commented 3 years ago

We mirror some files which get synced by clients regularly (using curl internally). mirrorbits will respond to these requests by redirecting to the best mirror and the mirror will then return 304 because the file hasn't changed.

Since mirrorbits already knows the mtime of the files it could in theory handle If-Modified-Since and return 304 itself.

ott commented 1 year ago

I implemented this in #131.

elboulangero commented 3 months ago

This one can be closed, was done in https://github.com/etix/mirrorbits/pull/169

lazka commented 3 months ago

it's not merged yet :)

elboulangero commented 3 months ago

Indeed, sorry for the confusion

jbkempf commented 2 months ago

169 is now merged.