Fixing Safari’s Cache With Vue.js (Developer Mode) (2020)
I happen to like Apple’s Safari browser, and I’d like to use it when developing stuff with Vue.js. I ran into a problem with this, however: Safari would cache the response from the live-reload development server on localhost, so that when I made changes it didn’t update, even when hitting the reload button. I think I’ve solved this though with a Cache-Control header configued in the project’s vue.config.js file.
tl;dr Put this in a file at project root called vue.