[wp-trac] [WordPress Trac] #4425: No Cache Headers

WordPress Trac wp-trac at lists.automattic.com
Sat Jun 9 00:55:04 GMT 2007


#4425: No Cache Headers
--------------------------+-------------------------------------------------
 Reporter:  werwin        |       Owner:  anonymous  
     Type:  defect        |      Status:  new        
 Priority:  normal        |   Milestone:  2.3 (trunk)
Component:  Optimization  |     Version:  2.2        
 Severity:  normal        |    Keywords:  cache      
--------------------------+-------------------------------------------------
 This is located in: wp-includes/functions.php

 I believe these headers needs to be changed or removed. The Pragma: no-
 cache isn't an offical method of having no cache, and I think should be
 removed. Also, if HTTP/1.1 is being used, then Expires should be removed
 and Cache-Control left...There's some updating and optimization that can
 be done here.

 {{{
 function nocache_headers() {
 738         @ header('Expires: Wed, 11 Jan 1984 05:00:00 GMT');
 739         @ header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . '
 GMT');
 740         @ header('Cache-Control: no-cache, must-revalidate, max-
 age=0');
 741         @ header('Pragma: no-cache');
 742     }
 }}}

-- 
Ticket URL: <http://trac.wordpress.org/ticket/4425>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list