-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FIX]Ignore cache requests & no track incognito host Issue #15 #34
base: master
Are you sure you want to change the base?
Conversation
…er#15 Merge of Jolg42's work with recent evolution for Chrome + add testing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't run the code but it looks ok (see suggestions)
Co-Authored-By: Joël Galeran <[email protected]>
Co-Authored-By: Joël Galeran <[email protected]>
Co-Authored-By: Joël Galeran <[email protected]>
Thanks for the code review @Jolg42 , code smells better like that. I played automated test to verify that everything is OK. |
@cguignol why this PR is closed? |
Because it was "Merged" somehow 🤷♂️ |
@Jolg42 it's the forked repo |
Oh yes indeed 😅 |
Smells like a mistake from me, I apologize and reopen the Pull Request ;) |
@@ -24,8 +24,14 @@ isChrome = () => { | |||
}; | |||
|
|||
headersReceivedListener = (requestDetails) => { | |||
// Do not count bytes from requests from local cache | |||
if (requestDetails.fromCache) return |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
if (requestDetails.fromCache) return | |
if (requestDetails.fromCache || requestDetails.incognito) { | |
return; | |
} |
And remove CONST_INCOGNITO
Merge of Jolg42's work with recent evolution for Chrome + add testing.
Some of his work list adding "const" for the declaration of functions has not been added because of problems not solved about testability of the code.