zoukankan      html  css  js  c++  java
  • How to disable Cache of Chromium (怎样禁用 Chromium 浏览器的 Cache)

    简介:
    Solution of how to disable Cache in Chromimum browser.
    转载请注明出处


    There's an option which does not appear in chromium's manual page --- "-disk-cache-dir".
    This option specifies where the disk cache should be stored.
    Hence, under Linux, we can set the disk-cache-dir to /dev/null. In that way, the cache will be disabled, and all contents will be read from the Internet directly.

    Here is what the modified chromium-browser-chromium.desktop looks like:

    [Desktop  Entry] 
    Name=Chromium Type=Application 
    Comment=Open-source version of Google Chrome web  browser 
    Exec=chromium-browser %U --disk-cache-dir=/dev/null 2>/dev/null 
    TryExec=chromium-browser 
    Icon=chromium-browser
    Categories=Network;WebBrowser; 
    MimeType=text/html;text/xml;application/xhtml+xml;x-scheme-handler/http;x-scheme-handler/https;   



    Why I need to disable file cache?
    Well, on my machine, when chromium browser starts up, it keeps reading cache and take a long time to show the homepage.
    So I decided to disable it.



    Author:yangyingchao, 2011-07-30
  • 相关阅读:
    封装cookie
    敏感词过滤
    面向对象改成选项卡
    正则表达式
    cookie
    DOM
    系统对象
    cookie记录用户名
    6个原则
    23中设计模式
  • 原文地址:https://www.cnblogs.com/yangyingchao/p/2178385.html
Copyright © 2011-2022 走看看