--archive-ignore-mime-type
- CLI
- --archive-ignore-mime-type
Excludes responses matching this MIME type from WARC, WACZ, and SQLite archives. Repeatable. Accepts case-insensitive type/subtype or type/* patterns, ignoring parameters such as charset. Matching resources still load in the page and remain in HAR output. 304 Not Modified responses are matched against the cached response’s MIME type.
Example
zshot -f winnie-the-pooh.wacz \
--archive-ignore-mime-type "image/*" \
--archive-ignore-mime-type "font/*" \
https://zshot-cli.com/example_assets/winnie-the-pooh/{
"url": "https://zshot-cli.com/example_assets/winnie-the-pooh/",
"output_type": "wacz",
"archive_ignore_mime_type": ["image/*", "font/*"]
}curl -X POST http://127.0.0.1:3000/ \
-H "Content-Type: application/json" \
-d '{"url":"https://zshot-cli.com/example_assets/winnie-the-pooh/","output_type":"wacz","archive_ignore_mime_type":["image/*","font/*"]}' \
-o winnie-the-pooh.wacz