How to design a Web application with a 40+ year lifetime?

Every passing year brings changes, so think hard before building systems.