chrome 修改缓存目录和大小、查看缓存文件和离线存储

Chrome now has two startup switches that you can use:


--disk-cache-dir
and
--disk-cache-size

Simply close Chrome, right-click your Chrome shortcut, click Properties, and then in the field labeled "Target:", make it look  something like this:

"...chrome.exe"  --disk-cache-dir="CACHE_DIR" --disk-cache-size=N

Where ' CACHE_DIR' is the new cache location, and ' N' is the cache size limit, in bytes.

Use whichever switch you need, or both. Keep in mind, however, that these features may not be completely stable yet. But you probably shouldn't have any problem with using them.

And to anyone who's interested, I caught gander of the existence of these switches directly from a source code file for Chrome. See here:

http://src.chromium.org/svn/trunk/src/chrome/common/chrome_switches.cc

 

 

If you want to see whats in your cache, just type about:cache or about:appcache-internals in the Omnibar.

For a reference file: DOMApplicationCache Class Reference or google "A Beginner's Guide to Using the Application Cache"

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值