We were seeing issues with cache combined with yarn (npm). The builds would fail because dependencies clashed on the branch’s cache. I see in the documentation described that you should use versioning for this kind of problems but it surprised me to learn that the branch caches don’t seem to expire at all. We have nightly branches on several projects which (obviously) rebuild the whole project with the latest versions every night but the cache is months old.
Is there any way to expire caches, maybe even depending on the branch name? It seems pointless to me to have branch caches if, for example, the master branch cache never gets updated.