[wp-trac] [WordPress Trac] #47396: Cron: Add no cache headers before calling `fastcgi_finish_request()`

WordPress Trac noreply at wordpress.org
Mon May 27 00:03:19 UTC 2019


#47396: Cron: Add no cache headers before calling `fastcgi_finish_request()`
---------------------------+---------------------------
 Reporter:  peterwilsoncc  |      Owner:  peterwilsoncc
     Type:  enhancement    |     Status:  assigned
 Priority:  normal         |  Milestone:  5.3
Component:  Cron API       |    Version:
 Severity:  normal         |   Keywords:  needs-patch
  Focuses:                 |
---------------------------+---------------------------
 Calls to `wp-cron.php` are not intended to be cached.

 In the block checking for and running `fastcgi_finish_request()` adding
 headers to prevent caching will prevent the DefaultTTL from being used on
 CDNs such as CloudFlare.

 {{{
 Expires: Wed, 11 Jan 1984 05:00:00 GMT
 Cache-Control: no-cache, must-revalidate, max-age=0
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/47396>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list