WordPress.org

Make WordPress Core

Ticket #47396: 47396-wp_get_nocache_headers.diff

File 47396-wp_get_nocache_headers.diff, 476 bytes (added by kingkero, 6 months ago)
  • wp-cron.php

    diff --git a/wp-cron.php b/wp-cron.php
    index ca478e4..1e37608 100644
    a b ignore_user_abort( true ); 
    2020
    2121/* Don't make the request block till we finish, if possible. */
    2222if ( function_exists( 'fastcgi_finish_request' ) && version_compare( phpversion(), '7.0.16', '>=' ) ) {
     23        header( 'Expires: Wed, 11 Jan 1984 05:00:00 GMT' );
     24        header( 'Cache-Control: no-cache, must-revalidate, max-age=0' );
    2325        fastcgi_finish_request();
    2426}
    2527