wagi-fileserver
wagi-fileserver copied to clipboard
Support cache revalidation headers (ETag/Last-Updated)
Support either (or both) of:
-
etag
/if-none-match
: Server sendsetag
header that must change if the file changes (e.g. hash of the file contents). If a client sendsif-none-match
with a matching value, server may return empty204 Not Modified
. https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-None-Match -
last-modified
/if-modified-since
: Server sendslast-modified
with file modification timestamp. If a client sendsif-modified-since
>= modification timestamp server may return empty204 Not Modified
. https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Modified-Since