madprabh
2 months ago
269
2
Mix

How to ensure new app.js is downloaded by browser

Posted 2 months ago by madprabh

Hey Folks,

I have a rather basic question.

So I use npm to build my application and to deploy it on the production server. Obviously it creates app.js that bundles all my Vue components. When I make changes to my components a new app.js is created but my browser has already cached the previous one.

How do I ensure that new app.js is downloaded by the browser? Some kind of query string appending is needed?

Any tips on this one will help me a lot.

Best, Madhu

Please sign in or create an account to participate in this conversation.