I am facing caching issue with my Angular app. I have used several approach but issue is still there. For creating the build, I am using following command.
ng build --prod --output-hashing=all --aot
Can we add version number after hash file name like as below.
<script src='runtime.834594739.js?v=12345678'></script>
Please suggest, how to add version number with build file which auto adds in index.html file on runtime.
Thanks
The correct param is --outputHashing
, not --output-hashing
. Just focus on -- (double hyphen)
Angular manages that on its own, just use it correctly.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.