Disabling Chrome cache for website development

后端 未结 30 1629
-上瘾入骨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条回答
  •  猫巷女王i
    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

提交回复
热议问题