Disabling Chrome cache for website development

后端 未结 30 1581
-上瘾入骨i
-上瘾入骨i 2020-11-21 06:49

I am modifying a site\'s appearance (CSS modifications) but can\'t see the result on Chrome because of annoying persistent cache. I tried Shift+refresh but it doe

相关标签:
30条回答
  • 2020-11-21 07:18

    There are two more options to disable page caching in Chrome for good:

    1. Deactivate Chrome Cache in the Registry

    Open Registry (Start -> Command -> Regedit)

    Search for: HKEY_CLASSES_ROOT\ChromeHTML\shell\open\command

    Change the part after ...chrom.exe" to this value: –disable-application-cache –media-cache-size=1 –disk-cache-size=1 — "%1"

    Example: "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" -disable-application-cache –media-cache-size=1 –disk-cache-size=1 — "%1"

    IMPORTANT:

    • there is a space and a hyphen after ...chrome.exe"

    • leave the path to chrome.exe as it is

    • If you copy the line, be sure to check, if the quotes are actual quotes.

    2. Deactivate Chrome cache by changing the shortcut properties

    Right-click on the Chrome icon and select "Properties" in the context menu. Add following value to the path: –disk-cache-size=1

    Example: "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" –disk-cache-size=1

    IMPORTANT:

    • there is a space and a hyphen after ...chrome.exe"

    • leave the path to chrome.exe as it is

    0 讨论(0)
  • 2020-11-21 07:18

    I have used the other options described above but I find that the best is to add the following parameter to the startup of chrome.exe.

    "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --disk-cache-size=1 -media-cache=1

    I find not disabling media cache is a good idea but it is here for completeness sake.

    In actuality I want an option to completely disable the cache, to use the memory for IO instead of my disk (which would make load time 10x faster too!) but I don't think chrome or any browser for that matter has that option yet.

    0 讨论(0)
  • 2020-11-21 07:19

    Instead of hitting "F5" Just hit:

    "Ctrl + F5"

    0 讨论(0)
  • 2020-11-21 07:20

    If you do not wish to edit Chrome's settings you may use incognito mode for the same results.

    0 讨论(0)
  • 2020-11-21 07:24

    Chrome's Cache killer is by far the best option. Since the store URL to install cache killer is down, you can download the CRX file here:

    https://www.crx4chrome.com/extensions/jpfbieopdmepaolggioebjmedmclkbap/

    once the extension file is downloaded, open Chrome -> more tools -> extensions, then drag the CRX file from the File Explorer or your Desktop (depending the location where you downloaded the file) into the chrome window to install the extension.

    0 讨论(0)
  • 2020-11-21 07:26

    Until the bug is fixed you could use Clear Cache Chrome plugin and you can also set a keyboard shortcut for it.

    After installing it, right click and go to options:

    Check Automatically reload active tab after clearing data:

    Select Everything for Time Period:

    And then you can go to Menu => Tools => Extensions:

    Click on keyboard shortcuts at the bottom:

    And set your keyboard shortcut, for example Ctrl + Shift +R:

    0 讨论(0)
提交回复
热议问题