From 4cecd6f96c26f747181639046c983ead66f28f17 Mon Sep 17 00:00:00 2001 From: wei <> Date: Mon, 16 Jan 2006 03:41:43 +0000 Subject: --- framework/Web/Javascripts/js/clientscripts.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'framework/Web/Javascripts/js/clientscripts.php') diff --git a/framework/Web/Javascripts/js/clientscripts.php b/framework/Web/Javascripts/js/clientscripts.php index 2bc206da..bc5d10f9 100644 --- a/framework/Web/Javascripts/js/clientscripts.php +++ b/framework/Web/Javascripts/js/clientscripts.php @@ -6,14 +6,13 @@ * - Add local file cache for the GZip:ed version. */ -if(isset($_GET['nocache'])) +if(is_int(strpos($_SERVER['REQUEST_URI'], '__nocache'))) $expiresOffset = -10000; //no cache else $expiresOffset = 3600 * 24 * 10; // 10 days util client cache expires -// Get data to load -$library = array( 'base', 'dom', 'effects', 'controls', 'logger', - 'ajax', 'rico', 'validator', 'datepicker'); +//allowed libraries +$library = array('prado', 'effects', 'ajax', 'validator', 'logger', 'datepicker', 'rico'); $param = isset($_GET['js']) ? $_GET['js'] : ''; -- cgit v1.2.3