Skip to content

Commit bd3da34

Browse files
committed
Allow cron endpoint to be cached if bypassd.
1 parent e9c6e22 commit bd3da34

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/wp-cron.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@
4141
/** This filter is documented in wp-includes/default-constants.php */
4242
if ( ! apply_filters( 'wp_cron_endpoint_enabled', true ) ) {
4343
if ( ! headers_sent() ) {
44-
header( 'Expires: Wed, 11 Jan 1984 05:00:00 GMT' );
45-
header( 'Cache-Control: no-cache, must-revalidate, max-age=0' );
4644
header( 'X-WP-Cron: Bypass' );
4745
}
4846
die();

0 commit comments

Comments
 (0)