summaryrefslogtreecommitdiff
path: root/framework/Web/Javascripts/js/clientscripts.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Web/Javascripts/js/clientscripts.php')
-rw-r--r--framework/Web/Javascripts/js/clientscripts.php7
1 files changed, 3 insertions, 4 deletions
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'] : '';