Ticket #3059: wp-cache-js.diff
| File wp-cache-js.diff, 2.7 KB (added by , 19 years ago) |
|---|
-
wp-includes/js/autosave.js.php
1 1 <?php @require_once('../../wp-config.php'); 2 $expiresOffset = 3600 * 24 * 10; // 10 days util client cache expires 3 4 header("Content-type: text/javascript; charset: UTF-8"); 5 header("Vary: Accept-Encoding"); // Handle proxies 6 header("Expires: " . gmdate("D, d M Y H:i:s", time() + $expiresOffset) . " GMT"); 7 8 2 cache_javascript_headers(); 9 3 ?> 10 4 var autosaveLast = ''; 11 5 function autosave_timer() { -
wp-includes/functions.php
737 737 @ header('Pragma: no-cache'); 738 738 } 739 739 740 function cache_javascript_headers() { 741 $expiresOffset = 864000; // 10 days 742 header("Content-type: text/javascript; charset=" . get_bloginfo('charset')); 743 header("Vary: Accept-Encoding"); // Handle proxies 744 header("Expires: " . gmdate("D, d M Y H:i:s", time() + $expiresOffset) . " GMT"); 745 } 746 740 747 function get_num_queries() { 741 748 global $wpdb; 742 749 return $wpdb->num_queries; -
wp-admin/cat-js.php
1 1 <?php 2 2 require_once('../wp-config.php'); 3 header('Content-type: text/javascript; charset=' . get_settings('blog_charset'), true);3 cache_javascript_headers(); 4 4 ?> 5 5 addLoadEvent(function(){catList=new listMan('categorychecklist');catList.ajaxRespEl='jaxcat';catList.topAdder=1;catList.alt=0;catList.showLink=0;}); 6 6 addLoadEvent(newCatAddIn); -
wp-admin/list-manipulation-js.php
1 1 <?php 2 2 require_once('admin.php'); 3 header('Content-type: text/javascript; charset=' . get_settings('blog_charset'), true);3 cache_javascript_headers(); 4 4 $handler = get_settings( 'siteurl' ) . '/wp-admin/admin-ajax.php'; 5 5 ?> 6 6 addLoadEvent(function(){theList=new listMan();}); -
wp-admin/dbx-admin-key-js.php
1 1 <?php 2 2 require_once('admin.php'); 3 header('Content-type: text/javascript; charset=' . get_settings('blog_charset'), true);3 cache_javascript_headers(); 4 4 5 5 switch ( $_GET['pagenow'] ) : 6 6 case 'post.php' :