[Vuejs]-Location reload crashes webpack dev server – Vue 2

0👍

Intention of this reloads was to purge the browser cache, after app re-deployment.

I fixed it with nginx cache busting:

location / {
    root /usr/share/nginx/html;
    try_files $uri $uri/ /index.html;
    add_header Cache-Control 'no-store, no-cache, must-revalidate, proxy-revalidate';
    expires 0;
}

Vue-CLI 3 be default is hashing all assets, so it was index.html responsible for this.

Leave a comment