[Pkg-mozext-commits] [requestpolicy] 145/280: update comment of `isDuplicateRequest`
David Prévot
taffit at moszumanska.debian.org
Sat May 2 20:30:13 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository requestpolicy.
commit 1745499e57032bce4f0252b31f3f70c302cab818
Author: Martin Kimmerle <dev at 256k.de>
Date: Thu Jan 15 22:58:09 2015 +0100
update comment of `isDuplicateRequest`
---
src/content/lib/request-processor.jsm | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/src/content/lib/request-processor.jsm b/src/content/lib/request-processor.jsm
index ff564cd..9d94bde 100644
--- a/src/content/lib/request-processor.jsm
+++ b/src/content/lib/request-processor.jsm
@@ -253,10 +253,13 @@ let RequestProcessor = (function(self) {
};
/**
- * Determines if a request is a duplicate of the last call to shouldLoad(). If
- * it is, the cached result in lastShouldLoadCheck.result can be used. Not
- * sure why, it seems that there are duplicates so using this simple cache of
- * the last call to shouldLoad() keeps duplicates out of log data.
+ * Determines if a request is a duplicate of the last call to shouldLoad().
+ * If it is, the cached result in lastShouldLoadCheck.result can be used.
+ * Using this simple cache of the last call to shouldLoad() keeps duplicates
+ * out of log data.
+ *
+ * Duplicate shouldLoad() calls can be produced for example by creating a
+ * page containing many <img> with the same image (same `src`).
*
* @param {Request} request
* @return {boolean} True if the request is a duplicate of the previous one.
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/requestpolicy.git
More information about the Pkg-mozext-commits
mailing list