Use closest branch for cache on feature branches



We use docker for our builds and so caching is very important to make builds fast. The problem is that feature branches are using the default branch (master) for their cache. It would be nice if they could use the branch that they are from for the cache so that only the changes from that branch invalidate the cache instead of all of the changes since master (which build up over time).