Search code examples
visual-studio-2017visual-studio-debuggingdisable-caching

Visual Studio 2017 Debugging - Disable Browser Cache


I use Visual Studio 2017 for web development pretty heavily, and when you let it open a browser (Chrome is my preference, though this would apply to Edge) it often loads cached versions of scripts and CSS. I know I can go to the Network tab and choose Disable Cache, but is there a way to get VS to just always load the browser with that option selected?


Solution

  • You can point cache dir to null using startup arguments for chrome.
    This will disable any caching.

    First manage browsers

    browser select

    Then add new Chrome browser with attribute: --disk-cache-dir=null

    add chrome with argument