How to force Chrome's script debugger to reload javascript?

前端 未结 15 1943
天涯浪人
天涯浪人 2020-12-12 09:56

I really like the ability to edit javascript in the chrome debugger however, I find that it can be really problematic getting the debugger to re-fetch the JavaScript from th

15条回答
  •  不知归路
    2020-12-12 09:57

    If you're running a local server on Apache, you can get what look like caching problems. This happened to me when I had a Apache server running under Vagrant (in virtualbox).

    Just add the following lines to your config file (/etc/httpd/conf/httpd.conf or equivalent):

    #Disable image serving for network mounted drive
    EnableSendfile off
    

    Note that it's worth searching through the config file to see if EnableSendfile is set to on anywhere else.

提交回复
热议问题