diff --git a/src/wp-includes/class-wp.php b/src/wp-includes/class-wp.php
index ce88c102cfade..bc06eb9e50bf0 100644
--- a/src/wp-includes/class-wp.php
+++ b/src/wp-includes/class-wp.php
@@ -545,6 +545,11 @@ public function send_headers() {
 			if ( $post && pings_open( $post ) ) {
 				$headers['X-Pingback'] = get_bloginfo( 'pingback_url', 'display' );
 			}
+
+			// Send nocache headers for password protected posts to avoid reverse-proxy or CDNs caching.
+			if ( ! empty( $post->post_password ) ) {
+				$headers = array_merge( $headers, wp_get_nocache_headers() );
+			}
 		}
 
 		/**
