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 like to get back what data I can from the forum loss, and I am hoping I have at least some of it stored in the cache files that Chrome created.
I face two problems -- the cache files have no filetype, and I'm unsure how to read them in an intelligent manner (trying to open them in Chrome itself seems to "redownload" them in a .gz format), and there are a ton of cache files.
Any suggestions on how to read and sort these files? (A simple string search should fit my needs)
I had some luck with this open-source Python project, seemingly inactive: https://github.com/JRBANCEL/Chromagnon
I ran:
And I got a locally-browsable extract of all my open tabs cache.
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:
Extract Chrome cache file by one line on PHP (without header, CRC32 and ISIZE block):
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:chrome://view-http-cache/
and click the page you want to recoverxxd -r a.txt| gzip -d
Note that other answers suggest passing
-p
option toxxd
- 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 usesed 's/ / /g'
for that).You can read cached files using Chrome alone.
Chrome has a feature called Show Saved Copy Button:
First disconnect from the Internet to make sure that browser doesn't overwrite cache entry. Then navigate to
chrome://flags/#show-saved-copy
and set flag value toEnable: Primary
. After you restart browser Show Saved Copy Button will be enabled. Now insert cached file URI into browser's address bar and hit enter. Chrome will display There is no Internet connection page alongside with Show saved copy button:After you hit the button browser will display cached file.
Try Chrome Cache View from NirSoft (free).
The JPEXS Free Flash Decompiler has Java code to do this at in the source tree for both Chrome and Firefox (no support for Firefox's more recent cache2 though).