diff options
author | Josh Matthews <josh@joshmatthews.net> | 2014-11-12 14:08:13 -0500 |
---|---|---|
committer | Gregory Terzian <gterzian@users.noreply.github.com> | 2017-11-14 17:20:39 +0800 |
commit | f674cba6125cecddc9a54182f66963238b5bdee1 (patch) | |
tree | df4da3991538ea19ee1bc0536f152746af3b3979 /components/net/lib.rs | |
parent | 333c6ef7fa55bfc08e1d53025c9db452e928a8bf (diff) | |
download | servo-f674cba6125cecddc9a54182f66963238b5bdee1.tar.gz servo-f674cba6125cecddc9a54182f66963238b5bdee1.zip |
Beginnings of a http cache
Doom cache entries based on the initial response, and prevent matching against doomed cache enties.
Evict cache entries that have passed their expiry date instead of matching them.
Document the cache. Refactor incomplete entries to lessen Option-itis.
Revalidate expired cache entries instead of unconditionally evicting them.
Forbid missing docs in cache code.
Revalidate must-revalidate entries.
Fetch content tests from a local HTTP server.
Track requests made to the test HTTP server.
Add a simple test that a cached resource with no expiry is not revalidated. Correct inverted expiry check in revalidation code.
Fix incorrect revalidation logic that dropped the consumer channels on the floor.
Ensure that requests are cached based on their request headers.
Run a separate http server instance for each test to avoid intermittent failures due to concurrent cache tests.
Add a test for uncacheable responses.
Address review comments.
Diffstat (limited to 'components/net/lib.rs')
-rw-r--r-- | components/net/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/components/net/lib.rs b/components/net/lib.rs index 7869ff1bb06..c77fce6c509 100644 --- a/components/net/lib.rs +++ b/components/net/lib.rs @@ -48,6 +48,7 @@ mod data_loader; pub mod filemanager_thread; mod hosts; pub mod hsts; +pub mod http_cache; pub mod http_loader; pub mod image_cache; pub mod mime_classifier; |