Skip to main content

maybe_not_modified

Function maybe_not_modified 

Source
pub fn maybe_not_modified(request: &Request, response: Response) -> Response
Expand description

Returns a 304 Not Modified when request is a conditional GET/HEAD that matches validators on response; otherwise returns response unchanged.

Precedence: If-None-Match (vs ETag) wins over If-Modified-Since (vs Last-Modified) when both are present.