X
Tap here to go to the mobile version of the site.
Your Firefox is out of date and may contain a security risk! Upgrade Firefox

Support Forum

Possible to set cache management rules by file type?

Posted

I like having a large cache thereby being able to search way back in my browsing history for web pages, and see previously clicked links no matter how long ago I clicked them, however it occurs to me that to avail myself of this benefit I also have to allow FF to cache everything else - text & javascript junk, old cookies, and hundreds of megs worth of pictures and flash bits that make the web look pretty.

I'd love a way to set expiry dates on the cache based on file types, e.g. htm/html: never delete. cookies: maybe, based on rules I set (option to add filters etc would be cool), pics & videos: a week or so, etc..

I assume this doesn't already exist as I can't find any reference to it when searching, and it's defo not natively available through the basic interface. How much work would it be to develop, and would anyone else benefit from this function?

Chosen solution

Not sure where it would be best to discuss this, but you will not normally have developers reading posts in this forum.Probably better to try looking at this listing:

You could file a bug requesting such a feature, but it would be much better to try to get someone interested in doing the work or agreeing it is worthwhile first.

It also occurs tome that what you may be more interested in is merely the History and not necessarily the cache, because presumably it is sufficient to have the link retained rather than the content itself. do you normally even try to search the cache rather then the History?

The History itself now by default goes back a long way, and only starts to restrict things if bookmarks are too extensive. (Not too sure at the moment where the links are but I recall changes in the algorithms maybe a year or too ago).

Another point is that short of copying your places.sqlite file there is no way of backing up history, there are no automated backups. (I know I accidentally cleared History recently, from the wrong profile, and had not backed it up for a long time)

Read this answer in context 1

Additional System Details

Installed Plug-ins

  • Shockwave Flash 11.5 r502
  • Adobe PDF Plug-In For Firefox and Netscape 10.1.5
  • NPRuntime Script Plug-in Library for Java(TM) Deploy
  • Next Generation Java Plug-in 10.9.2 for Mozilla browsers
  • Adobe Shockwave for Director Netscape plug-in, version 11.6.7.637
  • VLC media player Web Plugin 2.0.2
  • Winamp Application Detector
  • Nitro PDF Plug-in for Firefox and Chrome
  • 5.1.10516.0
  • NPWLPG
  • Intel web components updater - Installs and updates the Intel web components
  • Intel web components for Intel® Identity Protection Technology
  • The plug-in allows you to open and edit files using Microsoft Office applications
  • Office Authorization plug-in for NPAPI browsers

Application

  • User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:18.0) Gecko/20100101 Firefox/18.0

More Information

Win7 laptop and Ubuntu desktop. Not really a problem, per se, so full PC specs not required.

John99
  • Top 25 Contributor
  • Moderator
624 solutions 8068 answers

Chosen Solution

Not sure where it would be best to discuss this, but you will not normally have developers reading posts in this forum.Probably better to try looking at this listing:

You could file a bug requesting such a feature, but it would be much better to try to get someone interested in doing the work or agreeing it is worthwhile first.

It also occurs tome that what you may be more interested in is merely the History and not necessarily the cache, because presumably it is sufficient to have the link retained rather than the content itself. do you normally even try to search the cache rather then the History?

The History itself now by default goes back a long way, and only starts to restrict things if bookmarks are too extensive. (Not too sure at the moment where the links are but I recall changes in the algorithms maybe a year or too ago).

Another point is that short of copying your places.sqlite file there is no way of backing up history, there are no automated backups. (I know I accidentally cleared History recently, from the wrong profile, and had not backed it up for a long time)

Question owner

Thanks John, for the answer and for using the word fora  :)

Ah, so you've revealed a fallacy in my underlying knowledge: the cache doesn't store the history, thus I could delete the cache and not lose any of the history. More reading required for me, but looks as if my request probably won't now be required.

Cheers!

Dez

John99
  • Top 25 Contributor
  • Moderator
624 solutions 8068 answers

Hi Dez,
A bit more info.

The History is in places.sqlite and the user interface is part of the Library/bookmarks manager Ctrl + Shift + H

Please do not comment in bugs, but this one may include some interesting background reading Bug 425219 - Places' history expiration algorithm seems overly complicated

Cheers John


P.S.
There are software extensions for cache viewing but you can get a lot of information by using about:cache key it into the location bar.

Modified by John99

lightgrav 0 solutions 2 answers

MY FireFox (21) does not cache any *.htm or *.html files, so most of the text (including numbers, in most cases) are also not available in local cache. When clicking on the "History" link, the page will often not be loaded with the same text and numbers as were there at the time the page was actually viewed. In this sense, I would GREATLY prefer a "History" that IS able to retrieves its pages from cache ... make it into an "Archive".

Is there a way to get FF to save the htm in cache? That would be MUCH more useful to ME, and would be much smaller files, than most of the graphics.

cor-el
  • Top 10 Contributor
  • Moderator
10783 solutions 97054 answers

You did switch to File > [X] Work Offline mode?

You also need to make sure not to clear the cache and in case of a secure (https) connection, you need to keep those as well.

If you want to keep copies of a web page for later then best is to either save a screenshot of the full page (extensions can do this or the "screenshot --fullpage" command in the Web Developer Toolbar) or print the page to a PDF file.