Y
Y
Yevhenii K2020-07-10 16:19:01
webpack
Yevhenii K, 2020-07-10 16:19:01

Why doesn't Laravel Mix BrowserSync clear the browser cache?

After changes in the file, BrowserSync refreshes the page, but does not clear the cache. Have to do it manually. How do I get BrowserSync to do this?

const mix = require("laravel-mix");

mix
  .js("resources/js/app.js", "public/js")
  .sass("resources/sass/app.scss", "public/css");
mix.browserSync({
  proxy: "test.loc",
  open: false,
  files: [
    "public/assets/**/*",
    "public/index.php",
    "resources/**/*",
    "app/**/*",
    "routes/*"
  ]
});

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2020-07-10
@AFI19

why clean it up?
use adding a hash to the filename.
or disable cache in devtools.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question