Make WordPress Core

Opened 3 weeks ago

#47396 assigned enhancement

Cron: Add no cache headers before calling `fastcgi_finish_request()`

Reported by: peterwilsoncc Owned by: peterwilsoncc
Milestone: 5.3 Priority: normal
Severity: normal Version:
Component: Cron API Keywords: needs-patch
Focuses: Cc:


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

Change History (0)

Note: See TracTickets for help on using tickets.