← Back to Help
WarpedWing Labs

Firefox Cache Parser

This module parses Firefox's cache2 directory structure to extract HTTP artifacts including URLs, response headers, and cached content.

Disclaimer

This report is for informational and investigative purposes only. The data presented should be independently verified before being relied upon for any legal, regulatory, or evidentiary purpose.

Limitations

What Is Firefox Cache2?

Firefox stores HTTP cache data in a binary format under the cache2/ directory within each profile. Each cached resource is stored as a separate file with a SHA1-based filename in the entries/ subdirectory.

Cache entries contain:

Parsed Data

Cache Entry Metadata

For each cache entry, the parser extracts:

Index and Journal Files

When available, the parser also processes:

Body Extraction

Optionally, cached content bodies can be exported:

File extensions are determined by content-type headers or magic byte detection.

Data Sources

Artifact Path Pattern Firefox Versions
Cache entries ~/Library/Caches/Firefox/Profiles/*/cache2/entries/* 32+
Cache index ~/Library/Caches/Firefox/Profiles/*/cache2/index 32+
Cache journal ~/Library/Caches/Firefox/Profiles/*/cache2/index.log 32+

Note: Firefox 32 (2014) introduced the cache2 format, replacing the older cache v1 format.

Not Currently Parsed

Output Files

Command-Line Options

Option Description
--index-file Path to cache index file
--journal-file Path to index.log journal file
--dump-bodies Extract cached content to output directory
--dump-mode copy (default) or link for body extraction

Magic Byte Detection

When content-type headers are missing, the parser detects file types by magic bytes:

Scan Type

Exemplar only - This module runs during live system scans to capture current Firefox cache state.