Diversity has probably helped: besides its traditional strengths in electronics and software development, Cambridge has a healthy (and relatively recession-proof) medical-technology sector, and has branched out into biotechnology over the past couple of decades.
ECONOMIST: The Cambridge cluster