mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-04 20:54:29 +00:00
git-svn-id: https://develop.svn.wordpress.org/trunk@4109 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -737,6 +737,13 @@ function nocache_headers() {
|
||||
@ header('Pragma: no-cache');
|
||||
}
|
||||
|
||||
function cache_javascript_headers() {
|
||||
$expiresOffset = 864000; // 10 days
|
||||
header("Content-type: text/javascript; charset=" . get_bloginfo('charset'));
|
||||
header("Vary: Accept-Encoding"); // Handle proxies
|
||||
header("Expires: " . gmdate("D, d M Y H:i:s", time() + $expiresOffset) . " GMT");
|
||||
}
|
||||
|
||||
function get_num_queries() {
|
||||
global $wpdb;
|
||||
return $wpdb->num_queries;
|
||||
|
||||
Reference in New Issue
Block a user