[wp-trac] [WordPress Trac] #9205: Filter headers

WordPress Trac wp-trac at lists.automattic.com
Sat Feb 21 18:40:36 GMT 2009

#9205: Filter headers
 Reporter:  filosofo      |       Owner:  anonymous                   
     Type:  defect (bug)  |      Status:  new                         
 Priority:  normal        |   Milestone:  2.8                         
Component:  General       |     Version:                              
 Severity:  normal        |    Keywords:  headers wp_headers has-patch
 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, [ticket:9092 others] [ticket:7324 have] [ticket:5311
 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().

Ticket URL: <https://core.trac.wordpress.org/ticket/9205>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list