Changeset 4109
- Timestamp:
- 08/22/2006 05:31:53 PM (18 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/cat-js.php
r3684 r4109 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;}); -
trunk/wp-admin/dbx-admin-key-js.php
r3830 r4109 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'] ) : -
trunk/wp-admin/list-manipulation-js.php
r4069 r4109 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 ?> -
trunk/wp-includes/functions.php
r4091 r4109 736 736 @ header('Cache-Control: no-cache, must-revalidate, max-age=0'); 737 737 @ header('Pragma: no-cache'); 738 } 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"); 738 745 } 739 746 -
trunk/wp-includes/js/autosave.js.php
r4107 r4109 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 = '';
Note: See TracChangeset
for help on using the changeset viewer.