Disable cache busting on debug mode.

This commit is contained in:
alext 2018-01-02 13:34:13 +01:00
parent 5ae5719806
commit 8081e8ff9f

View file

@ -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);
}