How can I get chrome to stop caching when working on an aspx file in visual studio

I am currently editing some html / css inside an aspx file inside Visual Studio 2010. I am using Chrome as my browser. When I make changes inside Visual Studio and save / ctrl + F5 to run it, it often fails to load a new updated .css file due to pulling out old cached versions of CSS.

I used visual studio as the main HTML editor before, but when I work with pure html / css files, I just save and update the file in chrome and it will update the updated css 100% of the time. I just started experiencing this problem while working with aspx files and running things through ctrl + f5. Anyone have any ideas how I can fix this?

+3
source share
1 answer
  • Go to project properties, tab "Web"
  • Select Run External Program in the "Action" section.
  • Paste or go to the path for Google Chrome (Mine is C: \ Users \ Chris \ AppData \ Local \ Google \ Chrome \ Application \ chrome.exe)
  • In the command line argument field, put -incognito

If you want the browser to open a specific page, you need to configure Visual Studio Development Server to use a specific port (for example, 4066), and then change the command line arguments to include this address, for example: -incognito localhost: 4066 / Default.aspx

Incognito mode should prevent caching between sessions and even tabs.

+4

Source: https://habr.com/ru/post/1783334/


All Articles