Make reload button clear the network cache.

This commit is contained in:
Josh Matthews 2020-07-27 19:56:53 -04:00
parent fe24fc3068
commit f030162ec3
10 changed files with 50 additions and 1 deletions

View file

@ -902,4 +902,9 @@ impl HttpCache {
// See A cache MAY complete a stored incomplete response by making a subsequent range request
// https://tools.ietf.org/html/rfc7234#section-3.1
}
/// Clear the contents of this cache.
pub fn clear(&mut self) {
self.entries.clear();
}
}