How to totally prevent HTTP 304 responses in Connect/Express static middleware?

前端 未结 4 953
说谎
说谎 2021-02-07 11:05

At times during development, it would be really nice to prevent HTTP 304 responses (in favor of 200\'s), and cause the Connect/Express static middleware to read every r

4条回答
  •  [愿得一人]
    2021-02-07 11:44

    This solution is just a workaround. You could solve the problem from the browser side by disabling caching in Chrome. This doesn't help you if you need to work on something outside of Chrome, like Safari on iOS.

提交回复
热议问题