Search code examples
ember.jsember-cli

How to avoid browser caching of assets/vendor.js?


I have Ember-CLI application and in index.html there is lines:

<link rel="stylesheet" href="assets/vendor.css">
<script src="assets/vendor.js"></script>

And browser caches this files. And I want to add ?v=:version-no, I want to do generation of version during execution of ember build.

How can I add this feature into ember build?


Solution

  • build application with ember build --environment=production