Skip to main content

etag

Function etag 

Source
pub fn etag(attrs: &Attrs) -> Option<String>
Expand description

A validator the browser can send back.

Weak on purpose. SFTP v3 reports mtime in whole seconds, so two writes inside one second that land on the same size are indistinguishable here. Publishing that as a strong ETag would be a lie, and a strong validator is precisely what If-Range is permitted to trust.