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"

猜你喜欢

转载自sailinglee.iteye.com/blog/1045604