On one of my website, sometimes some of my custom js not working, I have embeeded on template file. I have checked console of browser it shows error, also sometimes css or some portion like sign in/sign out or logo will not display.
to fix it i have to run content deploy every time, i just need to know the root cause of it. What will be the best practices to fix these kind of issue, so that i don't have to run content deploy everytime, as website is already live, and it seems very disappointing if suddenly some function stop working.
Also, i have noticed that content deploy is not working with -f, is that was also a issue, which brings these problems.