Skip to content

Instantly share code, notes, and snippets.

@sidati
Last active October 19, 2020 11:22
Show Gist options
  • Save sidati/186832cff86866f7ba9f3c8a49a18dce to your computer and use it in GitHub Desktop.
Save sidati/186832cff86866f7ba9f3c8a49a18dce to your computer and use it in GitHub Desktop.
Filters in Chrome Dev Tools – How to Include, Exclude Resources
# Properties are sorted alphabetically
# Notice the `-` sign which is used as NOT or Exclude filter
domain:
-domain:
# Use a * character to include multiple domains.
# ie.: *.com, domain:google.com, -domain:twitter.com
has-response-header:
-has-response-header:
# Filter resources with the specified HTTP response header.
# ie.: has-response-header:Content-Type, has-response-header:age
is:
-is:
# is:running finds WebSocket resources
# - is:from-cache,
# - is:service-worker-initiated
# - is:service-worker-intercepted
larger-than:
-larger-than:
# Note: larger-than:1024 is equivalent to larger-than:1k
# ie.: larger-than:120, larger-than:4k, larger-than:100M
method:
-method:
# method:POST, -method:OPTIONS, method:PUT, method:GET
# exclude Pre-flight method requests -method:OPTIONS
mime-type:
-mime-type:
# ie.: mime-type:application/manifest+json, mime-type:image/x-icon
mixed-content:
-mixed-content:
# mixed-content:all (Show all mixed-content resources)
# mixed-content:displayed (Show only those currently displayed) (never used this personally)
scheme:
-scheme:
# ie.: scheme:http, scheme:https,
set-cookie-domain:
-set-cookie-domain:
# ie.: set-cookie-domain:.google.com
set-cookie-name:
-set-cookie-name:
# Match Set-Cookie response headers with name
# ie.: set-cookie-name:GDPR
set-cookie-value:
-set-cookie-value:
# Match Set-Cookie response headers with value
# ie.: set-cookie-value:AISJHD98ashfa93q2rj_94w-asd-yolololo
status-code:
-status-code:
# Match status code
# ie. status-code:200, -status-code:204
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment