Opened 18 years ago
Closed 18 years ago
#9205 closed defect (bug) (fixed)
Filter headers
| Reported by: | filosofo | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.8 |
| Component: | General | Version: | |
| Severity: | normal | Keywords: | headers wp_headers has-patch |
| Cc: | Focuses: |
Description
Problem: Currently there's no good way to control headers via a plugin. For example, under the status quo if someone is logged in the headers are set not to cache, which may not be desirable for a high-traffic community site. Also, others have complained about not being able to remove certain headers.
Solution: Filter the headers printed by the send_headers method of WP.
Patch also adds a wp_get_nocache_headers() function to filter the headers used in nocache_headers().
Attachments (1)
Change History (6)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
(In [10619]) Allow for the HTTP headers returned by WordPress to be filtered by a plugin. Fixes #9205 props filosofo.