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)
Joachim Metz provides some documentation of the Chrome cache file format with references to further information.
For my use case, I only needed a list of cached URLs and their respective timestamps. I wrote a Python script to get these by parsing the data_* files under
C:\Users\me\AppData\Local\Google\Chrome\User Data\Default\Cache\
:EDIT: The below answer no longer works see here
Chrome stores the cache as a hex dump. OSX comes with
xxd
installed, which is a command line tool for converting hex dumps. I managed to recover a jpg from my Chrome's HTTP cache on OSX using these steps:Your final command should look like:
pbpaste | python chrome_xxd.py | xxd -r - image.jpg
If you're unsure what section of Chrome's cache output is the content hex dump take a look at this page for a good guide: http://www.sparxeng.com/blog/wp-content/uploads/2013/03/chrome_cache_html_report.png
Image source: http://www.sparxeng.com/blog/software/recovering-images-from-google-chrome-browser-cache
More info on XXD: http://linuxcommand.org/man_pages/xxd1.html
Thanks to Mathias Bynens above for sending me in the right direction.
EDIT: The below answer no longer works see here
In Chrome or Opera, open a new tab and navigate to
chrome://view-http-cache/
Click on whichever file you want to view. You should then see a page with a bunch of text and numbers. Copy all the text on that page. Paste it in the text box below.
Press "Go". The cached data will appear in the Results section below.
I've made short stupid script which extracts JPG and PNG files:
It was removed on purpose and it won't be coming back.
Both
chrome://cache
andchrome://view-http-cache
have been removed starting chrome 66. They work in version 65.Workaround
You can check the
chrome://chrome-urls/
for complete list of internal Chrome URLs.The only workaround that comes into my mind is to use
menu/more tools/developer tools
and having aNetwork
tab selected.The reason why it was removed is this bug:
The discussion: