[wp-trac] [WordPress Trac] #56068: Send HTTP headers after querying posts in WP::main()
WordPress Trac
noreply at wordpress.org
Mon Jun 27 00:13:58 UTC 2022
#56068: Send HTTP headers after querying posts in WP::main()
----------------------------------------+------------------------------
Reporter: SergeyBiryukov | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Bootstrap/Load | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-unit-tests | Focuses: performance
----------------------------------------+------------------------------
Changes (by peterwilsoncc):
* focuses: => performance
Comment:
Adding the performance tag for the perf team to review.
The only back-compatibility issue I can see is if a developer is abusing a
hook between the current `send_headers` location and the proposed
relocation to `exit` early. I'm thinking something like this dreadful
plugin to
[https://gist.github.com/peterwilsoncc/de643a6f3ae3271cb2ab6c47f6e2fdf4
forbid certain query string parameters].
I do like this idea though, it will certainly help plugins determine if
they need to send additional headers to avoid caching, indexing and the
like.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56068#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list