# I am the Watcher. I am your guide through this vast new twtiverse.
# 
# Usage:
#     https://watcher.sour.is/api/plain/users              View list of users and latest twt date.
#     https://watcher.sour.is/api/plain/twt                View all twts.
#     https://watcher.sour.is/api/plain/mentions?uri=:uri  View all mentions for uri.
#     https://watcher.sour.is/api/plain/conv/:hash         View all twts for a conversation subject.
# 
# Options:
#     uri     Filter to show a specific users twts.
#     offset  Start index for quey.
#     limit   Count of items to return (going back in time).
# 
# twt range = 1 19
# self = https://watcher.sour.is/conv/tyyk5sq
Only seeing HTTP 200 from twtxt.net at the moment, despite if-modified-since πŸ€” https://movq.de/v/fb38f7c1bb/ifmod.png Not an issue for me personally, just wanted to mention it.
Only seeing HTTP 200 from twtxt.net at the moment, despite if-modified-since πŸ€” https://movq.de/v/fb38f7c1bb/ifmod.png Not an issue for me personally, just wanted to mention it.
Only seeing HTTP 200 from twtxt.net at the moment, despite if-modified-since πŸ€” https://movq.de/v/fb38f7c1bb/ifmod.png Not an issue for me personally, just wanted to mention it.
@movq Thanks! I know why. I recent change we made means we're missing this behavior. I'll see if we can fix it. cc @xuu It was the move from http.ServeContent() to effectively io.Copy()...
@movq Thanks! I know why. I recent change we made means we're missing this behavior. I'll see if we can fix it. cc @xuu It was the move from http.ServeContent() to effectively io.Copy()...
@movq Thanks! I know why. I recent change we made means we're missing this behavior. I'll see if we can fix it. cc @xuu It was the move from http.ServeContent() to effectively io.Copy()...
@prologic This never resolved itself, did it? πŸ˜…
@prologic This never resolved itself, did it? πŸ˜…
@prologic This never resolved itself, did it? πŸ˜…
@movq Err I totally forgot about this!\n\nHow do I repro?
@movq Err I totally forgot about this!

How do I repro?
@movq Err I totally forgot about this!

How do I repro?
@prologic Do a curl -sI https://twtxt.net/user/prologic/twtxt.txt and take note of the last-modified header. Then, doing a curl -sI -H 'if-modified-since: $previous_value' https://twtxt.net/user/prologic/twtxt.txt should result in HTTP 304. Currently, it’s HTTP 200 (transfers the whole file). >
@prologic Do a curl -sI https://twtxt.net/user/prologic/twtxt.txt and take note of the last-modified header. Then, doing a curl -sI -H 'if-modified-since: $previous_value' https://twtxt.net/user/prologic/twtxt.txt should result in HTTP 304. Currently, it’s HTTP 200 (transfers the whole file). >
@prologic Do a curl -sI https://twtxt.net/user/prologic/twtxt.txt and take note of the last-modified header. Then, doing a curl -sI -H 'if-modified-since: $previous_value' https://twtxt.net/user/prologic/twtxt.txt should result in HTTP 304. Currently, it’s HTTP 200 (transfers the whole file). >
@movq Ahh yes. You're right! It's because we added support for auto-generated preambles. Hmmm πŸ€” Looking at the code it's not that easy to fix (_the right way_); But I could just add a check for if-Modified-Since. But Range requests wouldn't be supported either unless I fix this properly.
@movq Ahh yes. You're right! It's because we added support for auto-generated preambles. Hmmm πŸ€” Looking at the code it's not that easy to fix (_the right way_); But I could just add a check for if-Modified-Since. But Range requests wouldn't be supported either unless I fix this properly.
Filed a bug https://git.mills.io/yarnsocial/yarn/issues/430
Filed a bug https://git.mills.io/yarnsocial/yarn/issues/430