How can I read Chrome Cache files?

前端 未结 12 1143
無奈伤痛
無奈伤痛 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:52

    EDIT: The below answer no longer works see here


    If the file you try to recover has Content-Encoding: gzip in the header section, and you are using linux (or as in my case, you have Cygwin installed) you can do the following:

    1. visit chrome://view-http-cache/ and click the page you want to recover
    2. copy the last (fourth) section of the page verbatim to a text file (say: a.txt)
    3. xxd -r a.txt| gzip -d

    Note that other answers suggest passing -p option to xxd - I had troubles with that presumably because the fourth section of the cache is not in the "postscript plain hexdump style" but in a "default style".

    It also does not seem necessary to replace double spaces with a single space, as chrome_xxd.py is doing (in case it is necessary you can use sed 's/ / /g' for that).

提交回复
热议问题