We're calling on all EU-based Mozillians with iOS or iPadOS devices to help us monitor Apple’s new browser choice screens. Join the effort to hold Big Tech to account!

This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Replacing existing cache file with another.

  • 1 reply
  • 1 has this problem
  • 3 views
  • Last reply by tom.murtha

more options

Is it possible to edit an existing cache entry? I accidentally deleted my cache, but was able to recover some of the files, as well as restore an older back up of the file. In about:cache, I can see the cache for the backup file for the correct site at a size of 149kb with the header showing raw gzip data. (starting with 1f 8b) The recovered file I have I believe is the same cache entry, but the recovered version since it's sitting at 154kb.

My question is where do I find the 149kb version that is currently in my firefox cache? Browsing through the cache files the largest is only 42kb, and seems unrelated. Is there a way to replace the backed up version with the restored version? The files themselves are gzip compressed, but does firefox add it's own layer of compression for storing things that I need to undo first?

Is it possible to edit an existing cache entry? I accidentally deleted my cache, but was able to recover some of the files, as well as restore an older back up of the file. In about:cache, I can see the cache for the backup file for the correct site at a size of 149kb with the header showing raw gzip data. (starting with 1f 8b) The recovered file I have I believe is the same cache entry, but the recovered version since it's sitting at 154kb. My question is where do I find the 149kb version that is currently in my firefox cache? Browsing through the cache files the largest is only 42kb, and seems unrelated. Is there a way to replace the backed up version with the restored version? The files themselves are gzip compressed, but does firefox add it's own layer of compression for storing things that I need to undo first?

All Replies (1)

more options

Quick edit, I should add this is a hacky workaround to not having been able to recover the index file. The old backup should have an identical structure, so I just need to replace the cache file itself and the current index should hopefully pick it up.