fn is_browser_cached(req: &HttpRequest, etag: &header::EntityTag) -> bool {
    use actix_web::HttpMessage;

    match req.get_header::<header::IfNoneMatch>() {
        Some(header::IfNoneMatch::Items(ref items)) => items.iter().any(|x| etag.strong_eq(x)),
        _ => false,
    }
}
/// Returns whether the browser has the resource already cached locally.
///
/// This is solely based on the `If-None-Match` header the client provides and the internally
/// computed strong `ETag`. This will always return `false` if the provided `If-None-Match` is `*`.
Returns whether the browser has the resource already cached locally.
This is solely based on the `If-None-Match` header the client provides and the internally
computed strong `ETag`.
Returns whether the browser has the resource already cached locally . This is solely based on the ` If - None - Match ` header the client provides and the internally computed strong ` ETag ` .
fn is_browser_cached(req: &HttpRequest, etag: &header::EntityTag) -> bool {
    use actix_web::HttpMessage;
    match req.get_header::<header::IfNoneMatch>() {
        Some(header::IfNoneMatch::Items(ref items)) => items.iter().any(|x| etag.strong_eq(x)),
        _ => false,
    }
}
fn is_browser_cached ( req : & HttpRequest , etag : & header :: EntityTag ) -> bool { use actix_web :: HttpMessage ; match req . get_header :: < header :: IfNoneMatch > ( ) { Some ( header :: IfNoneMatch :: Items ( ref items ) ) => items . iter ( ) . any ( | x | etag . strong_eq ( x ) ) , _ => false , } }
Returns whether the browser has the resource already cached locally.
Returns whether the browser has the resource already cached locally .
req
&HttpRequest
etag
&header::EntityTag