How can I read Chrome Cache files?

前端 未结 12 1159
無奈伤痛
無奈伤痛 2020-12-12 21:22

A forum I frequent was down today, and upon restoration, I discovered that the last two days of forum posting had been rolled back completely.

Needless to say, I\'d

12条回答
  •  南笙
    南笙 (楼主)
    2020-12-12 21:48

    EDIT: The below answer no longer works see here


    Google Chrome cache file format description.

    Cache files list, see URLs (copy and paste to your browser address bar):

    • chrome://cache/
    • chrome://view-http-cache/

    Cache folder in Linux: $~/.cache/google-chrome/Default/Cache

    Let's determine in file GZIP encoding:

    $ head f84358af102b1064_0 | hexdump -C | grep --before-context=100 --after-context=5 "1f 8b 08"
    

    Extract Chrome cache file by one line on PHP (without header, CRC32 and ISIZE block):

    $ php -r "echo gzinflate(substr(strchr(file_get_contents('f84358af102b1064_0'), \"\x1f\x8b\x08\"), 10,
    -8));"
    

提交回复
热议问题