View Full Version : Recuperare pagina web IMPORTANTISSIMA dalla cache
EnergyVortex
22-02-2010, 10:28
Salve, ho un estremo bisogno di recuperare una pagina web visitata ieri pomeriggio ed oggi non più disponibile.
Ho provato con la cache di google ma nulla, posso recuperarla dalla mia cache?
Ciao e grazie
xcdegasp
22-02-2010, 12:25
se entri in "cronologia" dovresti poterla trovare se la cronologia non è stata svuota alla chiusura del browser :)
EnergyVortex
22-02-2010, 17:04
La cronologia non è stata svuotata e la pagina in questione l'ho salvata anche tra i preferiti solo che se tento di accedervi mi dice che la pagina in questione è stata cancellata e quindi voolevo sapere se nella cache del brwser potevo trovare una copia della pagina
xcdegasp
22-02-2010, 17:09
la cronologia è la cache del browser e se tu entrassi nella cronologia puoi visonare la pagina.
andrea.ippo
22-02-2010, 17:45
la cronologia è la cache del browser e se tu entrassi nella cronologia puoi visonare la pagina.
Non è del tutto vero, almeno che mi risulti.
La cronologia infatti è l'elenco delle pagine visitate, in modo più o meno strutturato (URL, data/ora di visita + altre info eventualmente)
La cache è cosa ben diversa, e richiede molto più spazio perché deve salvare i sorgenti di tutte le pagine visitate.
Tra l'altro ogni browser ha politiche proprie per stabilire se salvare una pagina nella cache o meno.
Se usi Internet Explorer forse puoi vedere nella cartella Temporary Internet Files se trovi qualcosa.
Se usi Firefox credo ci sia un'estensione per rivedere le pagine salvate nella cache su disco.
EnergyVortex
25-02-2010, 14:06
Allora ragazzi vi aggiorno: la pagina è elencata nella cronologia, la cache non è stata svuotata ed il pc non è nemmeno stato spento da quando è stata visitata questa pagina il problema però è che se clikko sull patgina desiderata nella cronologia mi ridice che la pagina è stata rimossa quindi non la prende dalla cache ma la cerca sul sito internet.
Come posso cercare di trovarla nel pc? nella cache ci sono un sacco di immagini provenienti dal sito in questione e anche qualche pagina web ma non tutte le pagine che ho visitato.
Uso internet explorer 8.
Confido in voi
TheZioFede
25-02-2010, 14:11
prova a mettere internet explorer come non in linea e ricaricare la pagina dalla cronologia :) se è nella cache dovrebbe caricarla...
xcdegasp
25-02-2010, 16:43
Allora ragazzi vi aggiorno: la pagina è elencata nella cronologia, la cache non è stata svuotata ed il pc non è nemmeno stato spento da quando è stata visitata questa pagina il problema però è che se clikko sull patgina desiderata nella cronologia mi ridice che la pagina è stata rimossa quindi non la prende dalla cache ma la cerca sul sito internet.
Come posso cercare di trovarla nel pc? nella cache ci sono un sacco di immagini provenienti dal sito in questione e anche qualche pagina web ma non tutte le pagine che ho visitato.
Uso internet explorer 8.
Confido in voi
prima di clickare sulla pagina presente in cronologia abilita nel menù "file" la funzione "lavora fuori linea"
in questo modo forzi il caricamento di quella pagina che ha tenuto in memoria se non l'ha sovrascritta con il precedente tentativo :)
EnergyVortex
25-02-2010, 20:19
Purtroppo anche provando ad accedere non in linea mi dice paggina non più disponibile, avete qualche altra idea??
xcdegasp
26-02-2010, 07:19
Purtroppo anche provando ad accedere non in linea mi dice paggina non più disponibile, avete qualche altra idea??
allora significa che con il precedente tentativo di leggere la cache ha scaricato la nuova pagina sovrascrivendo quella che aveva in memoria.. scusa non avevo pensato che la sovrascrivesse..
ma sei sicuro che non si riesca a ricaricarla con la cache di google?
EnergyVortex
26-02-2010, 09:57
ci provai appena tolsero la pagina e non me la dava, cioè mi dava la pagina principale del sito salvata qualche ora prima ma quella pagina in particolare è come se non l'avesse salvata
jumpjack
14-09-2017, 09:34
Mi dispiace rispolverare un thread così vecchio, ma vedo che non ha mai avuto risposta, e comunque su Wikipedia l'abitudine di cancellare pagine senza motivo e senza preavviso permane anche 7 anni dopo...
Quindi ecco la soluzione:
scrivere crome://cache nella barra indirizzi
cercare la propria (probabile) pagina nella baraonda che appare
cliccare sul link
nella pagina che si apre, premere CTRL+ALT+J per aprire la console
incollare questo sorgente nella console dopo ">":
(function() {
var preTags = document.getElementsByTagName('pre');
var preWithHeaderInfo = preTags[0];
var preWithContent = preTags[2];
var lines = preWithContent.textContent.split('\n');
// get data about the formatting (changes between different versions of chrome)
var rgx = /^(0{8}:\s+)([0-9a-f]{2}\s+)[0-9a-f]{2}/m;
var match = rgx.exec(lines[0]);
var text = '';
for (var i = 0; i < lines.length; i++) {
var line = lines[i];
var firstIndex = match[1].length; // first index of the chars to match (e.g. where a '84' would start)
var indexJump = match[2].length; // how much space is between each set of numbers
var totalCharsPerLine = 16;
index = firstIndex;
for (var j = 0; j < totalCharsPerLine; j++) {
var hexValAsStr = line.substr(index, 2);
if (hexValAsStr == ' ') {
// no more chars
break;
}
var asciiVal = parseInt(hexValAsStr, 16);
text += String.fromCharCode(asciiVal);
index += indexJump;
}
}
var headerText = preWithHeaderInfo.textContent;
var elToInsertBefore = document.body.childNodes[0];
var insertedDiv = document.createElement("div");
document.body.insertBefore(insertedDiv, elToInsertBefore);
// find the filename
var nodes = [document.body];
var filepath = '';
while (true) {
var node = nodes.pop();
if (node.hasChildNodes()) {
var children = node.childNodes;
for (var i = children.length - 1; i >= 0; i--) {
nodes.push(children[i]);
}
}
if (node.nodeType === Node.TEXT_NODE && /\S/.test(node.nodeValue)) {
// 1st depth-first text node (with non-whitespace chars) found
filepath = node.nodeValue;
break;
}
}
outputResults(insertedDiv, convertToBase64(text), filepath, headerText);
insertedDiv.appendChild(document.createElement('hr'));
function outputResults(parentElement, fileContents, fileUrl, headerText) {
// last updated 1/27/12
var rgx = /.+\/([^\/]+)/;
var filename = rgx.exec(fileUrl)[1];
// get the content type
rgx = /content-type: (.+)/i;
var match = rgx.exec(headerText);
var contentTypeFound = match != null;
var contentType = "text/plain";
if (contentTypeFound) {
contentType = match[1];
}
var dataUri = "data:" + contentType + ";base64," + fileContents;
// check for gzipped file
var gZipRgx = /content-encoding: gzip/i;
if (gZipRgx.test(headerText)) {
filename += '.gz';
}
// check for image
var imageRgx = /image/i;
var isImage = imageRgx.test(contentType);
// create link
var aTag = document.createElement('a');
aTag.textContent = "Left-click to download the cached file";
aTag.setAttribute('href', dataUri);
aTag.setAttribute('download', filename);
parentElement.appendChild(aTag);
parentElement.appendChild(document.createElement('br'));
// create image
if (isImage) {
var imgTag = document.createElement('img');
imgTag.setAttribute("src", dataUri);
parentElement.appendChild(imgTag);
parentElement.appendChild(document.createElement('br'));
}
// create warning
if (!contentTypeFound) {
var pTag = document.createElement('p');
pTag.textContent = "WARNING: the type of file was not found in the headers... defaulting to text file.";
parentElement.appendChild(pTag);
}
}
function getBase64Char(base64Value) {
if (base64Value < 0) {
throw "Invalid number: " + base64Value;
} else if (base64Value <= 25) {
// A-Z
return String.fromCharCode(base64Value + "A".charCodeAt(0));
} else if (base64Value <= 51) {
// a-z
base64Value -= 26; // a
return String.fromCharCode(base64Value + "a".charCodeAt(0));
} else if (base64Value <= 61) {
// 0-9
base64Value -= 52; // 0
return String.fromCharCode(base64Value + "0".charCodeAt(0));
} else if (base64Value <= 62) {
return '+';
} else if (base64Value <= 63) {
return '/';
} else {
throw "Invalid number: " + base64Value;
}
}
function convertToBase64(input) {
// http://en.wikipedia.org/wiki/Base64#Example
var remainingBits;
var result = "";
var additionalCharsNeeded = 0;
var charIndex = -1;
var charAsciiValue;
var advanceToNextChar = function() {
charIndex++;
charAsciiValue = input.charCodeAt(charIndex);
return charIndex < input.length;
};
while (true) {
var base64Char;
// handle 1st char
if (!advanceToNextChar()) break;
base64Char = charAsciiValue >>> 2;
remainingBits = charAsciiValue & 3; // 0000 0011
result += getBase64Char(base64Char); // 1st char
additionalCharsNeeded = 3;
// handle 2nd char
if (!advanceToNextChar()) break;
base64Char = (remainingBits << 4) | (charAsciiValue >>> 4);
remainingBits = charAsciiValue & 15; // 0000 1111
result += getBase64Char(base64Char); // 2nd char
additionalCharsNeeded = 2;
// handle 3rd char
if (!advanceToNextChar()) break;
base64Char = (remainingBits << 2) | (charAsciiValue >>> 6);
result += getBase64Char(base64Char); // 3rd char
remainingBits = charAsciiValue & 63; // 0011 1111
result += getBase64Char(remainingBits); // 4th char
additionalCharsNeeded = 0;
}
// there may be an additional 2-3 chars that need to be added
if (additionalCharsNeeded == 2) {
remainingBits = remainingBits << 2; // 4 extra bits
result += getBase64Char(remainingBits) + "=";
} else if (additionalCharsNeeded == 3) {
remainingBits = remainingBits << 4; // 2 extra bits
result += getBase64Char(remainingBits) + "==";
} else if (additionalCharsNeeded != 0) {
throw "Unhandled number of additional chars needed: " + additionalCharsNeeded;
}
return result;
}
})()
premere invio
in alto, nella pagina, comparirà il link a un file .gz:
salvarlo
scompattarlo
rinominare in qualcosa.html il file al suo interno
incrociare le dita
aprire il file...
In teoria si potrebbe pure fare automaticamente da questa pagina (http://www.sensefulsolutions.com/2012/01/viewing-chrome-cache-easy-way.html#tabs-2) incollando il contenuto della cache, ma a me non funziona.
In 7 anni ne avrà fatta di strada...
jumpjack
14-09-2017, 09:59
In 7 anni ne avrà fatta di strada...
Spero proprio di sì.... Ma per chi come me capiterà qui con google....
Maxspeed
07-04-2019, 15:53
Mi dispiace rispolverare un thread così vecchio, ma vedo che non ha mai avuto risposta, e comunque su Wikipedia l'abitudine di cancellare pagine senza motivo e senza preavviso permane anche 7 anni dopo...
Quindi ecco la soluzione:
scrivere crome://cache nella barra indirizzi
cercare la propria (probabile) pagina nella baraonda che appare
cliccare sul link
nella pagina che si apre, premere CTRL+ALT+J per aprire la console
incollare questo sorgente nella console dopo ">":
(function() {
var preTags = document.getElementsByTagName('pre');
var preWithHeaderInfo = preTags[0];
var preWithContent = preTags[2];
var lines = preWithContent.textContent.split('\n');
// get data about the formatting (changes between different versions of chrome)
var rgx = /^(0{8}:\s+)([0-9a-f]{2}\s+)[0-9a-f]{2}/m;
var match = rgx.exec(lines[0]);
var text = '';
for (var i = 0; i < lines.length; i++) {
var line = lines[i];
var firstIndex = match[1].length; // first index of the chars to match (e.g. where a '84' would start)
var indexJump = match[2].length; // how much space is between each set of numbers
var totalCharsPerLine = 16;
index = firstIndex;
for (var j = 0; j < totalCharsPerLine; j++) {
var hexValAsStr = line.substr(index, 2);
if (hexValAsStr == ' ') {
// no more chars
break;
}
var asciiVal = parseInt(hexValAsStr, 16);
text += String.fromCharCode(asciiVal);
index += indexJump;
}
}
var headerText = preWithHeaderInfo.textContent;
var elToInsertBefore = document.body.childNodes[0];
var insertedDiv = document.createElement("div");
document.body.insertBefore(insertedDiv, elToInsertBefore);
// find the filename
var nodes = [document.body];
var filepath = '';
while (true) {
var node = nodes.pop();
if (node.hasChildNodes()) {
var children = node.childNodes;
for (var i = children.length - 1; i >= 0; i--) {
nodes.push(children[i]);
}
}
if (node.nodeType === Node.TEXT_NODE && /\S/.test(node.nodeValue)) {
// 1st depth-first text node (with non-whitespace chars) found
filepath = node.nodeValue;
break;
}
}
outputResults(insertedDiv, convertToBase64(text), filepath, headerText);
insertedDiv.appendChild(document.createElement('hr'));
function outputResults(parentElement, fileContents, fileUrl, headerText) {
// last updated 1/27/12
var rgx = /.+\/([^\/]+)/;
var filename = rgx.exec(fileUrl)[1];
// get the content type
rgx = /content-type: (.+)/i;
var match = rgx.exec(headerText);
var contentTypeFound = match != null;
var contentType = "text/plain";
if (contentTypeFound) {
contentType = match[1];
}
var dataUri = "data:" + contentType + ";base64," + fileContents;
// check for gzipped file
var gZipRgx = /content-encoding: gzip/i;
if (gZipRgx.test(headerText)) {
filename += '.gz';
}
// check for image
var imageRgx = /image/i;
var isImage = imageRgx.test(contentType);
// create link
var aTag = document.createElement('a');
aTag.textContent = "Left-click to download the cached file";
aTag.setAttribute('href', dataUri);
aTag.setAttribute('download', filename);
parentElement.appendChild(aTag);
parentElement.appendChild(document.createElement('br'));
// create image
if (isImage) {
var imgTag = document.createElement('img');
imgTag.setAttribute("src", dataUri);
parentElement.appendChild(imgTag);
parentElement.appendChild(document.createElement('br'));
}
// create warning
if (!contentTypeFound) {
var pTag = document.createElement('p');
pTag.textContent = "WARNING: the type of file was not found in the headers... defaulting to text file.";
parentElement.appendChild(pTag);
}
}
function getBase64Char(base64Value) {
if (base64Value < 0) {
throw "Invalid number: " + base64Value;
} else if (base64Value <= 25) {
// A-Z
return String.fromCharCode(base64Value + "A".charCodeAt(0));
} else if (base64Value <= 51) {
// a-z
base64Value -= 26; // a
return String.fromCharCode(base64Value + "a".charCodeAt(0));
} else if (base64Value <= 61) {
// 0-9
base64Value -= 52; // 0
return String.fromCharCode(base64Value + "0".charCodeAt(0));
} else if (base64Value <= 62) {
return '+';
} else if (base64Value <= 63) {
return '/';
} else {
throw "Invalid number: " + base64Value;
}
}
function convertToBase64(input) {
// http://en.wikipedia.org/wiki/Base64#Example
var remainingBits;
var result = "";
var additionalCharsNeeded = 0;
var charIndex = -1;
var charAsciiValue;
var advanceToNextChar = function() {
charIndex++;
charAsciiValue = input.charCodeAt(charIndex);
return charIndex < input.length;
};
while (true) {
var base64Char;
// handle 1st char
if (!advanceToNextChar()) break;
base64Char = charAsciiValue >>> 2;
remainingBits = charAsciiValue & 3; // 0000 0011
result += getBase64Char(base64Char); // 1st char
additionalCharsNeeded = 3;
// handle 2nd char
if (!advanceToNextChar()) break;
base64Char = (remainingBits << 4) | (charAsciiValue >>> 4);
remainingBits = charAsciiValue & 15; // 0000 1111
result += getBase64Char(base64Char); // 2nd char
additionalCharsNeeded = 2;
// handle 3rd char
if (!advanceToNextChar()) break;
base64Char = (remainingBits << 2) | (charAsciiValue >>> 6);
result += getBase64Char(base64Char); // 3rd char
remainingBits = charAsciiValue & 63; // 0011 1111
result += getBase64Char(remainingBits); // 4th char
additionalCharsNeeded = 0;
}
// there may be an additional 2-3 chars that need to be added
if (additionalCharsNeeded == 2) {
remainingBits = remainingBits << 2; // 4 extra bits
result += getBase64Char(remainingBits) + "=";
} else if (additionalCharsNeeded == 3) {
remainingBits = remainingBits << 4; // 2 extra bits
result += getBase64Char(remainingBits) + "==";
} else if (additionalCharsNeeded != 0) {
throw "Unhandled number of additional chars needed: " + additionalCharsNeeded;
}
return result;
}
})()
premere invio
in alto, nella pagina, comparirà il link a un file .gz:
salvarlo
scompattarlo
rinominare in qualcosa.html il file al suo interno
incrociare le dita
aprire il file...
In teoria si potrebbe pure fare automaticamente da questa pagina (http://www.sensefulsolutions.com/2012/01/viewing-chrome-cache-easy-way.html#tabs-2) incollando il contenuto della cache, ma a me non funziona.
Ciao, sono capitato qui proprio perchè anch'io vorrei vedere una pagina che ho visitato ieri e che ora si è aggiornata ed è cambiata ma la vorrei vedere proprio come era ieri e non so se sia possibile. Volevo provare la tua guida ma già al primo punto non va bene.
Scrivendo "crome://cache" non porta a nulla, solo a dei risultati Google, anche nel caso ti fossi sbagliato e hai dimenticato la "h" comunque non porta a niente.
Al max sono riuscito a trovare la cartella dove è contenuta la cache ma non risolvo nulla.
Qualcuna sa dare una mano?
vBulletin® v3.6.4, Copyright ©2000-2025, Jelsoft Enterprises Ltd.