Implement the negative cache mechanism for the Real-Time request simulation
Categories
(Toolkit :: Safe Browsing, task)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox150 | --- | fixed |
People
(Reporter: timhuang, Assigned: timhuang)
References
(Blocks 1 open bug)
Details
Attachments
(4 external files)
The SafeBrowsing V5 Real-Time mode doesn't have the concept of negative caching. This makes sense because any domains classified as benign could become malicious in the next second. So, a negative cache can reduce the protection that Real-Time mode provides.
However, we believe that a negative cache can effectively reduce Real-Time traffic, based on the hypothesis that users often navigate to the same site within a short time frame. To experiment with it, we need to implement a negative cache mechanism for the RealTime request simulator.
| Assignee | ||
Updated•8 months ago
|
| Assignee | ||
Comment 1•8 months ago
|
||
This patch implements a negative cache mechanism in RealTimeRequestSimulator
that caches prefixes with no simulated real-time hits, allowing subsequent
lookups to skip sending a request.
| Assignee | ||
Comment 2•8 months ago
|
||
| Assignee | ||
Comment 3•8 months ago
|
||
This patch fixes the positive cache lookup to check the per-full-hash expiry
from CachedFullHashResponse::fullHashes instead of using
negativeCacheExpirySec as a prefix-level proxy. Expired full hash entries
are now removed individually, and the prefix entry is cleaned up when no full
hashes remain.
| Assignee | ||
Comment 4•8 months ago
|
||
This patch adds ExpireCache() that sets all cache expiry times to 0, and used
in the browser tests to replace the flaky 2-second setTimeout waits.
Comment 6•8 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/21b276e62cba
https://hg.mozilla.org/mozilla-central/rev/91695eebf19c
https://hg.mozilla.org/mozilla-central/rev/255c84a43ab5
https://hg.mozilla.org/mozilla-central/rev/38145814501e
Updated•8 months ago
|
Description
•