What strategies would you use to optimize the performance of a web application?

Situational