put js in cache (wordtube Version: 2.4.0)
-
hello
here 2 small improvements easy to include in your next version:
file :statistic.js.php (put js in cache)header('Content-Type: text/javascript; charset=utf-8', true); header("Last-Modified: " . gmdate("D, d M Y H:i:s",filemtime(__FILE__)) . " GMT"); header('Cache-Control: public, max-age=29030400');
file : wordtube.class.php (put wordtube in footer)
function integrate_js() { wp_enqueue_script('swfobject', WORDTUBE_URLPATH . 'javascript/swfobject.js', false, '2.1'); wp_enqueue_script('wordtube_stats', get_option ('siteurl') . '/index.php?wordtube-js=true', array('jquery'), '2.0',true); }
thx for your plugin
regards
- The topic ‘put js in cache (wordtube Version: 2.4.0)’ is closed to new replies.