Firefox recovery .js files 

Not so long ago an unpleasant thing happened to me. I was editing a javascript file on the server, with a large number of lines. And after another save of the file my connection to the Internet broke. There were some problems with my provider. So I closed my editor and switched off my computer…

Not so long ago an unpleasant thing happened to me. I was editing a javascript file on the server, with a large number of lines. And after another save of the file my connection to the Internet broke. There were some problems with my provider.

So I closed my editor and switched off my computer without saving this JS file on the local computer. After I got the Internet again, I opened the file I was editing and got a very unpleasant surprise. Because I had lost Internet access while the file was being saved, a part of the file had not had time to be uploaded to the server and was lost. Because of my inattention, the file was ruined!

Fortunately, I remembered the browser cache and that this javascript file should have been cached. So I decided to check it out and pull my file from the browser cache.

Since I mostly use Firefox, I started looking for my file in that browser.

In order to get the information about the cache you need to type in the address bar the following line: about:cache

about:cache

You will see the following screen:

Общая информация о кэше браузера

By the way, I am using Linux. Under Windows maybe the images will look different.

To view all the files in the cache, click on the link “List cache entries” in the section “Disc cache device”. It will open a page with a list of all files:

L

Список всех файлов в кэше браузера

By the way, here we can see where on your computer you store the cache. This is done by the Cache Directory line.

Then I searched the page and found the file and clicked on it. The next page will open:

Информация о файле в кэше браузера

All you need to do now is to locate the file and get it out. As you can see from the figure, you can find out by looking at the line file on disk.

As you can see from this picture, the file on disk has a different name. So I took the file from the path on my computer and copied it to the desktop and renamed it with the right file extension.

That is how you can easily get a file from your browser cache. I hope this article will be useful to you and you will not make the same mistake as I did.

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *