From 8081e8ff9fead966b1a540376ee17c54dd76dfd7 Mon Sep 17 00:00:00 2001 From: alext Date: Tue, 2 Jan 2018 13:34:13 +0100 Subject: [PATCH] Disable cache busting on debug mode. --- src/application/helpers/asset_helper.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/application/helpers/asset_helper.php b/src/application/helpers/asset_helper.php index fee0378b..51890ebb 100644 --- a/src/application/helpers/asset_helper.php +++ b/src/application/helpers/asset_helper.php @@ -25,5 +25,7 @@ function asset_url($uri = '', $protocol = NULL) { $ci =& get_instance(); - return base_url($uri . '?' . $ci->config->item('cache_busting_token'), $protocol); + $cache_busting_token = !Config::DEBUG_MODE ? '?' . $ci->config->item('cache_busting_token') : ''; + + return base_url($uri . $cache_busting_token, $protocol); }