[wp-trac] [WordPress Trac] #47396: Cron: Add no cache headers before calling `fastcgi_finish_request()`
WordPress Trac
noreply at wordpress.org
Thu Jun 20 12:28:55 UTC 2019
#47396: Cron: Add no cache headers before calling `fastcgi_finish_request()`
-------------------------------------------------+-------------------------
Reporter: peterwilsoncc | Owner: (none)
Type: enhancement | Status: assigned
Priority: normal | Milestone: 5.3
Component: Cron API | Version:
Severity: normal | Resolution:
Keywords: good-first-bug has-patch needs- | Focuses:
refresh |
-------------------------------------------------+-------------------------
Changes (by peterwilsoncc):
* keywords: good-first-bug has-patch needs-testing => good-first-bug has-
patch needs-refresh
Comment:
@kingkero Thanks so much for the patch.
You've put the headers in the perfect spot, but it is OK if you use the
`Expires` and `Cache-Control` headers I noted above?
WordPress has a function `nocache_headers()` that uses the expires and
cache-control headers. `nocache_headers()` isn't available here but using
the same two headers will ensure consistency for WordPress sites.
I've marked this patch as needing a refresh, if you have time that would
be great but I (or another person) can pick it up if you don't.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47396#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list