[wp-trac] Re: [WordPress Trac] #2799: Cache 'dynamic' Javascript

WordPress Trac wp-trac at lists.automattic.com
Thu Jun 8 06:25:38 GMT 2006


#2799: Cache 'dynamic' Javascript
----------------------------+-----------------------------------------------
       Id:  2799            |      Status:  new                     
Component:  Administration  |    Modified:  Thu Jun  8 06:25:38 2006
 Severity:  normal          |   Milestone:  2.1                     
 Priority:  normal          |     Version:  2.1                     
    Owner:  mdawaffe        |    Reporter:  mdawaffe                
----------------------------+-----------------------------------------------
Comment (by markjaquith):

 {{{
 require_once('../wp-config.php');
 header('Content-type: text/javascript; charset=' .
 get_settings('blog_charset'), true);
 header('Cache-control: max-age=2600000, must-revalidate', true);  // ~1
 month
 }}}

 I see those three lines listed three times, and there will probably be
 other times as we add more JS functionality in the future.  Wanna move
 that to an include so that there's one place to go to edit it all?

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


More information about the wp-trac mailing list