2007年10月15日星期一

Firefox缓存设置

一些Firefox缓存设置的技巧
1.更改临时文件存放位置
Firefox默认的缓存保存位置是
%AppData%\Mozilla\Firefox\Profiles\xxxxxxxx.default

在windows 2000/XP 系统下,变量 %AppData%是一个对Application Data路径的简记形式. 使用这个变量的时候,仅仅需要在资源管理器的地址栏中输入 %AppData%然后按Enter就可以了. 您会被代到真正的文件夹下,一般情况下可能是: C:\Documents and Settings\[User Name]\Application Data。

在Firefox的地址栏中输入“about:config“并回车,会看到firefox详细配置页面。创建一个新的选项,名为browser.cache.disk.parent_directory,类型为字符串,输入新的临时文件路径,例如 D:\FirefoxCache。

2. 改变磁盘缓存容量
在firefox详细配置页面,更改browser.cache.disk.capacity选项的数值,我设置成100000,单位是K,即100M。记得要确保browser.cache.disk.enable选项的值是true。

也可以选择浏览器“工具”菜单下的“选项”命令,在弹出窗口中选择“隐私”,然后在右侧视图中单击展开“高速缓存”,设置容量大小.不过浏览器“工具”菜单中能够配置的参数有限,远远不如“about:config“方式。

3.查看浏览器缓存信息

在Firefox的地址栏中输入”about:cache”并回车,可以看到浏览器目前缓存信息,包括内存缓存和磁盘缓存.点击磁盘缓存的”List Cache Entries”,可以查看浏览器当前所有缓存情况,下面是一条缓存信息:

Key: http://images.sohu.com/cs/mms/ad/mms.js
Data size: 6755 bytes
Fetch count: 2
Last modified: 2006-09-01 09:42:59
Expires: 2006-10-29 09:21:52

再点击http://images.sohu.com/cs/mms/ad/mms.js链接,会看到更详细的信息:
key: http://images.sohu.com/cs/mms/ad/mms.js
fetch count: 3
last fetched: 2006-09-03 19:13:22
last modified: 2006-09-01 09:42:59
expires: 2006-10-29 09:21:52
Data size: 6755
file on disk: none
Security: This document does not have any security info associated with it.
Client: HTTP
request-method: GET
request-Accept-Encoding: gzip,deflate
response-head: HTTP/1.1 200 OK
Date: Wed, 30 Aug 2006 01:21:52 GMT
Server: Apache/1.3.33 (Unix) mod_layout/3.2.1
Vary: Accept-Encoding
Cache-Control: max-age=5184000
Expires: Sun, 29 Oct 2006 01:21:52 GMT
Last-Modified: Thu, 26 May 2005 02:53:52 GMT
Etag: “2033b8-1a63-42953a40″
Accept-Ranges: bytes
Content-Length: 6755
Content-Type: application/x-javascript
Via: 1.1 CHN-XA-2-453
Age: 174062

狼:我习惯把Firefox的缓存设置在ramdisk上~速度更快呢~

没有评论: