<SOLVED> how to turn a Chrome Browser gzipped cache file into original webpage ?

Questions about other topics - please check if your question fits better in another category before posting here
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
ilidan10

<SOLVED> how to turn a Chrome Browser gzipped cache file into original webpage ?

Post by ilidan10 »

Hey all , as the title says , i'm looking for a way to decode a gziped code.
Ok so let's start with some details :D

1. like an year ago or even more , I wanted to access a webpage for the second time in that day. Unfortunately the webpage wasn't available anymore , but it was something important for me so I quickly went to chrome://cache and found the link i needed. I read a little tutorial at that time and I don't remember exactly all I did.
The result was that i got a file or two which looks like this:

" https://www.wattpad.com/306478033-life- ... -var%C4%83
HTTP/1.1 404
status: 404
date: Thu, 24 Nov 2016 12:25:36 GMT
content-type: text/html; charset=utf-8
access-control-allow-origin: *
etag: W/"fd5c-TkAOox2ozD3tVs8ZNhqbiQ"
vary: Accept-Encoding
x-powered-by: wp
server: cloudflare-nginx
cf-ray: 306cd830c9ae2950-OTP
content-encoding: gzip
00000000: e4 0e 00 00 03 6f 47 00 6f e4 c6 62 a1 a0 2e 00 .....oG.o..b....
00000010: d2 5a d3 62 a1 a0 2e 00 14 01 00 00 48 54 54 50 .Z.b........HTTP
00000020: 2f 31 2e 31 20 34 30 34 00 73 74 61 74 75 73 3a /1.1 404.status:
00000030: 34 30 34 00 64 61 74 65 3a 54 68 75 2c 20 32 34 404.date:Thu, 24
00000040: 20 4e 6f 76 20 32 30 31 36 20 31 32 3a 32 35 3a Nov 2016 12:25:
00000050: 33 36 20 47 4d 54 00 63 6f 6e 74 65 6e 74 2d 74 36 GMT.content-t
00000060: 79 70 65 3a 74 65 78 74 2f 68 74 6d 6c 3b 20 63 ype:text/html; c
............................................................................................. "

is just a little part so that you all can have an idea about what i am talkin about.

2. I seen it says " content-encoding: gzip " so i searched a way to decode it back then and even now. I found an online tool few days ago but it only works on the cache found in the actual Chrome History , and this link is not anymore in there , obviously , after a year. I tried to open this file with the Chrome browser and to use the script but it gives an error , this error doesn't appear on any link in my actual chrome://cache , so i suppose that the script just doesn't work on a file opened like that.


I really want to get that back, of course that i take in consideration the fact that i might have downloaded the wrong cache file back then but i REALLY HOPE that is not so and that i have the right thing.

My operating system is Linux Mint 17 on 64 bit , and i am using it for like 3-4 years now. ( i'm not totally newbie at using terminal and stuff :) )

Cheers to all , and thx in advantage for anyone willing to help me.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
Flemur
Level 20
Level 20
Posts: 10096
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: how to turn a Chrome Browser gzipped cache file into original webpage ?

Post by Flemur »

ilidan10 wrote:The result was that i got a file or two which looks like this:
"A file or two" ?? What were the extensions?
ilidan10 wrote:" https://www.wattpad.com/306478033-life- ... -var%C4%83
HTTP/1.1 404
status: 404
I bet you got a file with a NOT FOUND web page in it, the same as that URL still displays.

Search on:
linux gzip
easily gives:
https://www.lifewire.com/example-uses-o ... nd-4078675
How To Decompress A File Using The "gzip" Command
If you have a file that has already been compressing you can use the following command to decompress it.
gzip -d filename.gz
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
ilidan10

Re: how to turn a Chrome Browser gzipped cache file into original webpage ?

Post by ilidan10 »

"A file or two" ?? What were the extensions?
is a text of 100kb or smth , and an archive of 18kb , each with no extention
I bet you got a file with a NOT FOUND web page in it, the same as that URL still displays.

ok so i tried the link you provided me with , and first time it didn't work. So i renamed the files .gz , the " text " one still didn't work on it, but when i renamed the archive the command worked out and uncompressed a file which opened up a very slow loading page in Chrome... and yeah you were right , it's the not found one :cry:
I feel so noob right now, i should've figured that out then not now. Now is to late to get anything back . But thank you for the info , if there will be a next time , i'll know how this works now :)

So now i suppose i'll set this as solved , cause your post answered the actual question.
Locked

Return to “Other topics”