如何更改firefox脱机缓存位置?
-
- 帖子: 1081
- 注册时间: 2009-04-29 21:22
如何更改firefox脱机缓存位置?
在地址栏中输入:about:cache
可以看到,Offline cache device的位置在:
~/.mozilla/firefox/hx7osujo.default/OfflineCache
这样带来一些问题,一是,每次非正常关机的时候,重新打开firefox,都可以重新打开意外关闭的界面。这表明了这个脱机缓机文件的存储是实时的,这无疑增加了向硬盘的写入。另外,由于实时地向硬盘写入,肯定就导致了速度的变慢。如何能把这个位置改一下,改到设在内存中的/TMP文件夹中去。
网上没办法搜到这个问题的解决。
请注意,我不是要更改Disk cache device的位置。回复者请看清楚问题再回复吧。这个问题应有一定的难度。
可以看到,Offline cache device的位置在:
~/.mozilla/firefox/hx7osujo.default/OfflineCache
这样带来一些问题,一是,每次非正常关机的时候,重新打开firefox,都可以重新打开意外关闭的界面。这表明了这个脱机缓机文件的存储是实时的,这无疑增加了向硬盘的写入。另外,由于实时地向硬盘写入,肯定就导致了速度的变慢。如何能把这个位置改一下,改到设在内存中的/TMP文件夹中去。
网上没办法搜到这个问题的解决。
请注意,我不是要更改Disk cache device的位置。回复者请看清楚问题再回复吧。这个问题应有一定的难度。
- bumble-bee
- 帖子: 18
- 注册时间: 2009-08-18 12:24
Re: 如何更改firefox脱机缓存位置?
在firefox里面改。
-
- 帖子: 1081
- 注册时间: 2009-04-29 21:22
Re: 如何更改firefox脱机缓存位置?
唉,这个问题看来没人能解,只能期待firefox的编写者改正这个问题啦。
-
- 帖子: 18311
- 注册时间: 2008-01-09 22:41
Re: 如何更改firefox脱机缓存位置?
记得chrome也不能改
反正磁盘也是用来写的,只要不是ssd就ok
win的chrome就是把书标移动到地址栏,就要改3个键值……
反正磁盘也是用来写的,只要不是ssd就ok
win的chrome就是把书标移动到地址栏,就要改3个键值……
-
- 帖子: 1081
- 注册时间: 2009-04-29 21:22
Re: 如何更改firefox脱机缓存位置?
delectate 写了:记得chrome也不能改
反正磁盘也是用来写的,只要不是ssd就ok
win的chrome就是把书标移动到地址栏,就要改3个键值……
这种设置实在是让人不爽的,这样的功能肯定会缩小硬盘的寿命,更重要的是导致速度的下降。所以人们诟病firefox的速度,这恐怕是一个重要的原因。
- mickeywaley
- 帖子: 1427
- 注册时间: 2009-03-19 9:19
- 系统: ubuntu
- 来自: 江苏
- 联系:
Re: 如何更改firefox脱机缓存位置?
全写内存,你开多了页面,和看电影不卡死
有个插件可以指定 的,以前用过
有个插件可以指定 的,以前用过
- blog:http://lizhenglin.com备份的,原站加www.
- OS:ubuntu:9.04
- Google Talk:mickeywaley#gmail.com
- Twitter:@mickeywaley
- Google Voice:1-520-226-8130
- Ubuntu 9.10 (Karmic Koala) 安装配置相关教程 http://docs.google.com/View?id=ddqsjgzx_747f25h8pcb
- soething
- 帖子: 746
- 注册时间: 2008-07-23 19:06
- yechao1989
- 帖子: 576
- 注册时间: 2009-07-19 21:03
-
- 帖子: 1081
- 注册时间: 2009-04-29 21:22
Re: 如何更改firefox脱机缓存位置?
soething 写了:这个cache动辄数百兆,放到内存恐怕吃不消。
内存大的话,建立内存的tmpfs,再设置过去好了。
脱机文件正常的不过一百M左右而已,并不大。tmpfs是设置好了的。只是没有办法移过去。也无法用ln命令。
-
- 帖子: 1081
- 注册时间: 2009-04-29 21:22
Re: 如何更改firefox脱机缓存位置?
yechao1989 写了:没多大必要,缓存设小一点不就好了,或者直接隐私浏览吧
无论是把缓存设为0还是1,结果一样。
-
- 帖子: 386
- 注册时间: 2009-01-30 20:54
Re: 如何更改firefox脱机缓存位置?
mark一下
-
- 帖子: 1081
- 注册时间: 2009-04-29 21:22
Re: 如何更改firefox脱机缓存位置?
已找到修改Offline cache device的办法
about:config 里新建字符串 browser.cache.offline.parent_directory ,值为你想要改到的目录,例如/tmp。
但是,问题依旧。
看来,这个实时写入的问题不是由Offline cache device导致的。
about:config 里新建字符串 browser.cache.offline.parent_directory ,值为你想要改到的目录,例如/tmp。
但是,问题依旧。
看来,这个实时写入的问题不是由Offline cache device导致的。
-
- 帖子: 1081
- 注册时间: 2009-04-29 21:22
Re: 如何更改firefox脱机缓存位置?
终于在网上找到了资料如下:
===================================
If you do not want Firefox to automatically restore your session after one crash, set the preference browser.sessionstore.max_resumed_crashes to 0 (default is 1)
To disable the crash recovery feature, set browser.sessionstore.resume_from_crash to false in about:config
====================================
把browser.sessionstore.max_resumed_crashes设置为0,把 browser.sessionstore.resume_from_crash设置为false,果然能够禁用这一功能。但不知是不是治标不治本,也就是说,不知是否能禁止了firefox对硬盘的实时写入。
===================================
If you do not want Firefox to automatically restore your session after one crash, set the preference browser.sessionstore.max_resumed_crashes to 0 (default is 1)
To disable the crash recovery feature, set browser.sessionstore.resume_from_crash to false in about:config
====================================
把browser.sessionstore.max_resumed_crashes设置为0,把 browser.sessionstore.resume_from_crash设置为false,果然能够禁用这一功能。但不知是不是治标不治本,也就是说,不知是否能禁止了firefox对硬盘的实时写入。
-
- 帖子: 18311
- 注册时间: 2008-01-09 22:41
Re: 如何更改firefox脱机缓存位置?
don't give firefox disk write privilege人在井天 写了:终于在网上找到了资料如下:
===================================
If you do not want Firefox to automatically restore your session after one crash, set the preference browser.sessionstore.max_resumed_crashes to 0 (default is 1)
To disable the crash recovery feature, set browser.sessionstore.resume_from_crash to false in about:config
====================================
把browser.sessionstore.max_resumed_crashes设置为0,把 browser.sessionstore.resume_from_crash设置为false,果然能够禁用这一功能。但不知是不是治标不治本,也就是说,不知是否能禁止了firefox对硬盘的实时写入。
-
- 帖子: 1081
- 注册时间: 2009-04-29 21:22
Re: 如何更改firefox脱机缓存位置?
搞笑!delectate 写了:don't give firefox disk write privilege人在井天 写了:终于在网上找到了资料如下:
===================================
If you do not want Firefox to automatically restore your session after one crash, set the preference browser.sessionstore.max_resumed_crashes to 0 (default is 1)
To disable the crash recovery feature, set browser.sessionstore.resume_from_crash to false in about:config
====================================
把browser.sessionstore.max_resumed_crashes设置为0,把 browser.sessionstore.resume_from_crash设置为false,果然能够禁用这一功能。但不知是不是治标不治本,也就是说,不知是否能禁止了firefox对硬盘的实时写入。