claustromaniac / detect-cloudflare-plus

True Sight Firefox extension.
https://addons.mozilla.org/firefox/addon/detect-cloudflare-plus/
GNU General Public License v3.0
37 stars 3 forks source link

apply detection on cached resources too #2

Closed claustromaniac closed 6 years ago

claustromaniac commented 6 years ago

The OnCompleted event makes detection more accurate, but at the same time prevents the extension from detecting loaded cached resources as having been served by Cloudflare. Doing a two-step detection using a separate OnResponseStarted listener in addition to the current OnCompleted one should work.