/// Enable HTTP cache control (current always enable with max-age=0)
Enable HTTP cache control (current always enable with max-age=0)
Enable HTTP cache control ( current always enable with max - age = 0 )
fn enable_cache_control(&self, res: &mut Response) {
        let header = CacheControl::new()
            .with_public()
            .with_max_age(Duration::from_secs(self.args.cache));
        res.headers_mut().typed_insert(header);
    }
fn enable_cache_control ( & self , res : & mut Response ) { let header = CacheControl :: new ( ) . with_public ( ) . with_max_age ( Duration :: from_secs ( self . args . cache ) ) ; res . headers_mut ( ) . typed_insert ( header ) ; }
Enable HTTP cache control (current always enable with max-age=0)
Enable HTTP cache control ( current always enable with max - age = 0 )
&self
res
&mut Response