How does caching speed up a website or web app?
Caching removes repeated work: the browser does not download images and scripts again, a CDN serves files from the nearest node, and the server does not recalculate heavy queries. Decide in advance what may be cached and what, such as prices, stock and payment statuses, must always be fresh.
More in the guide to web performance optimization.