Hello Stanley,
According to this document, the web server application (nginx, apache, etc.) on the (wordpress) instance uses HTTP headers to indicate which responses should be cached, and which should not. You can check the requirements ( to configure your web server) of such headers at this link. As for dynamic pages, and pages that require real-time updates, you may check this best practices document explaining expiration times configurations. I hope this helps.