With Firefox, how can I get a cache entry as a file using its entry info
I use Firefox 58 on GNU/Linux Mint 18.3
If I visit about:cache?storage=disk&context=
, I get a listing of cache entries; and if I click one, I see some meta-data, and then this sort of an octal dump of the contents:
00000000: 1f 8b 08 00 00 00 00 00 04 00 ec bd 69 73 db 48 ............is.H
00000010: b2 28 fa f1 45 dc 5f 41 c1 1a 19 10 c1 55 3b 29 .(..E._A.....U;)
00000020: 90 d7 6d bb a7 1d e3 de 2c f7 f4 99 21 69 0f 08 ..m.....,...!i..
00000030: 80 12 da 20 c0 01 40 cb 6a 91 fd db 5f 2e 55 40 ... ..@.j..._.U@
00000040: 61 a1 24 f7 99 f3 5e c4 8d db 33 86 88 aa 42 ad a.$...^...3...B.
00000050: 59 b9 55 66 96 b6 4e bc 46 92 c6 be 93 6a c3 cf Y.Uf..N.F....j..
and so on. But - I want the actually cached document/sequence-of-octets, as a file. Can I get that somehow? Through the browser UI or from the command-line based on the cache entry details?
linux firefox cache
add a comment |
I use Firefox 58 on GNU/Linux Mint 18.3
If I visit about:cache?storage=disk&context=
, I get a listing of cache entries; and if I click one, I see some meta-data, and then this sort of an octal dump of the contents:
00000000: 1f 8b 08 00 00 00 00 00 04 00 ec bd 69 73 db 48 ............is.H
00000010: b2 28 fa f1 45 dc 5f 41 c1 1a 19 10 c1 55 3b 29 .(..E._A.....U;)
00000020: 90 d7 6d bb a7 1d e3 de 2c f7 f4 99 21 69 0f 08 ..m.....,...!i..
00000030: 80 12 da 20 c0 01 40 cb 6a 91 fd db 5f 2e 55 40 ... ..@.j..._.U@
00000040: 61 a1 24 f7 99 f3 5e c4 8d db 33 86 88 aa 42 ad a.$...^...3...B.
00000050: 59 b9 55 66 96 b6 4e bc 46 92 c6 be 93 6a c3 cf Y.Uf..N.F....j..
and so on. But - I want the actually cached document/sequence-of-octets, as a file. Can I get that somehow? Through the browser UI or from the command-line based on the cache entry details?
linux firefox cache
add a comment |
I use Firefox 58 on GNU/Linux Mint 18.3
If I visit about:cache?storage=disk&context=
, I get a listing of cache entries; and if I click one, I see some meta-data, and then this sort of an octal dump of the contents:
00000000: 1f 8b 08 00 00 00 00 00 04 00 ec bd 69 73 db 48 ............is.H
00000010: b2 28 fa f1 45 dc 5f 41 c1 1a 19 10 c1 55 3b 29 .(..E._A.....U;)
00000020: 90 d7 6d bb a7 1d e3 de 2c f7 f4 99 21 69 0f 08 ..m.....,...!i..
00000030: 80 12 da 20 c0 01 40 cb 6a 91 fd db 5f 2e 55 40 ... ..@.j..._.U@
00000040: 61 a1 24 f7 99 f3 5e c4 8d db 33 86 88 aa 42 ad a.$...^...3...B.
00000050: 59 b9 55 66 96 b6 4e bc 46 92 c6 be 93 6a c3 cf Y.Uf..N.F....j..
and so on. But - I want the actually cached document/sequence-of-octets, as a file. Can I get that somehow? Through the browser UI or from the command-line based on the cache entry details?
linux firefox cache
I use Firefox 58 on GNU/Linux Mint 18.3
If I visit about:cache?storage=disk&context=
, I get a listing of cache entries; and if I click one, I see some meta-data, and then this sort of an octal dump of the contents:
00000000: 1f 8b 08 00 00 00 00 00 04 00 ec bd 69 73 db 48 ............is.H
00000010: b2 28 fa f1 45 dc 5f 41 c1 1a 19 10 c1 55 3b 29 .(..E._A.....U;)
00000020: 90 d7 6d bb a7 1d e3 de 2c f7 f4 99 21 69 0f 08 ..m.....,...!i..
00000030: 80 12 da 20 c0 01 40 cb 6a 91 fd db 5f 2e 55 40 ... ..@.j..._.U@
00000040: 61 a1 24 f7 99 f3 5e c4 8d db 33 86 88 aa 42 ad a.$...^...3...B.
00000050: 59 b9 55 66 96 b6 4e bc 46 92 c6 be 93 6a c3 cf Y.Uf..N.F....j..
and so on. But - I want the actually cached document/sequence-of-octets, as a file. Can I get that somehow? Through the browser UI or from the command-line based on the cache entry details?
linux firefox cache
linux firefox cache
asked Feb 28 at 10:37
einpoklum
1,93372864
1,93372864
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Restore file with HEX data
First, remove the line numbers at the front and the characters at the end.
To do so you could copy the dump data to an editor using one of these:
- a multi-line cursor
search and replace: search with the regular expression:([0-9a-f]{8}:ss)|(.{16}($|n))
and replace it to nothing.
Second, insert the pure hex-data you now have into an hex editor like e.g. https://hexed.it/, export / save the file and make sure you give the file the right file-ending, depending on the content-type.
So, I guess I could do that, but - I'm sure that stuff is sitting in some file on disk.
– einpoklum
Feb 28 at 11:56
Well, it is but not as a readable file. If you have a look at about:cache?storage=disk&context= you will see a property named: Storage disk location
– Leun4m
Feb 28 at 11:58
But as I said they are encrypted for security reasons: support.mozilla.org/en-US/questions/982861
– Leun4m
Feb 28 at 12:00
No, I don't see that.
– einpoklum
Feb 28 at 12:17
1
that regex is incorrect, the line numbers are reported as hex so you need([0-9a-f]{8}:ss)|(.{16}($|n))
– Arkadiy Kukarkin
Dec 6 at 3:20
|
show 2 more comments
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1299100%2fwith-firefox-how-can-i-get-a-cache-entry-as-a-file-using-its-entry-info%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Restore file with HEX data
First, remove the line numbers at the front and the characters at the end.
To do so you could copy the dump data to an editor using one of these:
- a multi-line cursor
search and replace: search with the regular expression:([0-9a-f]{8}:ss)|(.{16}($|n))
and replace it to nothing.
Second, insert the pure hex-data you now have into an hex editor like e.g. https://hexed.it/, export / save the file and make sure you give the file the right file-ending, depending on the content-type.
So, I guess I could do that, but - I'm sure that stuff is sitting in some file on disk.
– einpoklum
Feb 28 at 11:56
Well, it is but not as a readable file. If you have a look at about:cache?storage=disk&context= you will see a property named: Storage disk location
– Leun4m
Feb 28 at 11:58
But as I said they are encrypted for security reasons: support.mozilla.org/en-US/questions/982861
– Leun4m
Feb 28 at 12:00
No, I don't see that.
– einpoklum
Feb 28 at 12:17
1
that regex is incorrect, the line numbers are reported as hex so you need([0-9a-f]{8}:ss)|(.{16}($|n))
– Arkadiy Kukarkin
Dec 6 at 3:20
|
show 2 more comments
Restore file with HEX data
First, remove the line numbers at the front and the characters at the end.
To do so you could copy the dump data to an editor using one of these:
- a multi-line cursor
search and replace: search with the regular expression:([0-9a-f]{8}:ss)|(.{16}($|n))
and replace it to nothing.
Second, insert the pure hex-data you now have into an hex editor like e.g. https://hexed.it/, export / save the file and make sure you give the file the right file-ending, depending on the content-type.
So, I guess I could do that, but - I'm sure that stuff is sitting in some file on disk.
– einpoklum
Feb 28 at 11:56
Well, it is but not as a readable file. If you have a look at about:cache?storage=disk&context= you will see a property named: Storage disk location
– Leun4m
Feb 28 at 11:58
But as I said they are encrypted for security reasons: support.mozilla.org/en-US/questions/982861
– Leun4m
Feb 28 at 12:00
No, I don't see that.
– einpoklum
Feb 28 at 12:17
1
that regex is incorrect, the line numbers are reported as hex so you need([0-9a-f]{8}:ss)|(.{16}($|n))
– Arkadiy Kukarkin
Dec 6 at 3:20
|
show 2 more comments
Restore file with HEX data
First, remove the line numbers at the front and the characters at the end.
To do so you could copy the dump data to an editor using one of these:
- a multi-line cursor
search and replace: search with the regular expression:([0-9a-f]{8}:ss)|(.{16}($|n))
and replace it to nothing.
Second, insert the pure hex-data you now have into an hex editor like e.g. https://hexed.it/, export / save the file and make sure you give the file the right file-ending, depending on the content-type.
Restore file with HEX data
First, remove the line numbers at the front and the characters at the end.
To do so you could copy the dump data to an editor using one of these:
- a multi-line cursor
search and replace: search with the regular expression:([0-9a-f]{8}:ss)|(.{16}($|n))
and replace it to nothing.
Second, insert the pure hex-data you now have into an hex editor like e.g. https://hexed.it/, export / save the file and make sure you give the file the right file-ending, depending on the content-type.
edited Dec 6 at 13:56
answered Feb 28 at 11:47
Leun4m
304111
304111
So, I guess I could do that, but - I'm sure that stuff is sitting in some file on disk.
– einpoklum
Feb 28 at 11:56
Well, it is but not as a readable file. If you have a look at about:cache?storage=disk&context= you will see a property named: Storage disk location
– Leun4m
Feb 28 at 11:58
But as I said they are encrypted for security reasons: support.mozilla.org/en-US/questions/982861
– Leun4m
Feb 28 at 12:00
No, I don't see that.
– einpoklum
Feb 28 at 12:17
1
that regex is incorrect, the line numbers are reported as hex so you need([0-9a-f]{8}:ss)|(.{16}($|n))
– Arkadiy Kukarkin
Dec 6 at 3:20
|
show 2 more comments
So, I guess I could do that, but - I'm sure that stuff is sitting in some file on disk.
– einpoklum
Feb 28 at 11:56
Well, it is but not as a readable file. If you have a look at about:cache?storage=disk&context= you will see a property named: Storage disk location
– Leun4m
Feb 28 at 11:58
But as I said they are encrypted for security reasons: support.mozilla.org/en-US/questions/982861
– Leun4m
Feb 28 at 12:00
No, I don't see that.
– einpoklum
Feb 28 at 12:17
1
that regex is incorrect, the line numbers are reported as hex so you need([0-9a-f]{8}:ss)|(.{16}($|n))
– Arkadiy Kukarkin
Dec 6 at 3:20
So, I guess I could do that, but - I'm sure that stuff is sitting in some file on disk.
– einpoklum
Feb 28 at 11:56
So, I guess I could do that, but - I'm sure that stuff is sitting in some file on disk.
– einpoklum
Feb 28 at 11:56
Well, it is but not as a readable file. If you have a look at about:cache?storage=disk&context= you will see a property named: Storage disk location
– Leun4m
Feb 28 at 11:58
Well, it is but not as a readable file. If you have a look at about:cache?storage=disk&context= you will see a property named: Storage disk location
– Leun4m
Feb 28 at 11:58
But as I said they are encrypted for security reasons: support.mozilla.org/en-US/questions/982861
– Leun4m
Feb 28 at 12:00
But as I said they are encrypted for security reasons: support.mozilla.org/en-US/questions/982861
– Leun4m
Feb 28 at 12:00
No, I don't see that.
– einpoklum
Feb 28 at 12:17
No, I don't see that.
– einpoklum
Feb 28 at 12:17
1
1
that regex is incorrect, the line numbers are reported as hex so you need
([0-9a-f]{8}:ss)|(.{16}($|n))
– Arkadiy Kukarkin
Dec 6 at 3:20
that regex is incorrect, the line numbers are reported as hex so you need
([0-9a-f]{8}:ss)|(.{16}($|n))
– Arkadiy Kukarkin
Dec 6 at 3:20
|
show 2 more comments
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1299100%2fwith-firefox-how-can-i-get-a-cache-entry-as-a-file-using-its-entry-info%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown