mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
mach fmt
after updating toolchain to 2021-05-18
Signed-off-by: Dominic Cooney <dominic.cooney@gmail.com>
This commit is contained in:
parent
7d997748da
commit
a68c336e55
1 changed files with 2 additions and 2 deletions
|
@ -230,8 +230,8 @@ fn get_response_expiry(response: &Response) -> Duration {
|
|||
let max_heuristic = Duration::hours(24) - age;
|
||||
let heuristic_freshness = if let Some(last_modified) =
|
||||
// If the response has a Last-Modified header field,
|
||||
// caches are encouraged to use a heuristic expiration value
|
||||
// that is no more than some fraction of the interval since that time.
|
||||
// caches are encouraged to use a heuristic expiration value
|
||||
// that is no more than some fraction of the interval since that time.
|
||||
response.headers.typed_get::<LastModified>()
|
||||
{
|
||||
let current = time::now().to_timespec();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue