[BUGFIX] Forced no_cache makes TS assets not build

This changes the condition for when to build TS assets from using the "is cached?" indication to using an "have TS assets been built?" indication stored in a static class variable.

Close: #664