关于虚拟文本(有关版本彼得点链接),让我们来看看它在Drupal common.inc文件的意见/包括文件夹:
function drupal_get_js($scope = 'header', $javascript = NULL) {
..
// A dummy query-string is added to filenames, to gain control over
// browser-caching. The string changes on every update or full cache
// flush, forcing browsers to load a new copy of the files, as the
// URL changed. Files that should not be cached (see drupal_add_js())
// get time() as query-string instead, to enforce reload on every
// page request.
$query_string = '?'. substr(variable_get('css_js_query_string', '0'), 0, 1);
..
}
function drupal_get_css($css = NULL) {
..
// A dummy query-string is added to filenames, to gain control over
// browser-caching. The string changes on every update or full cache
// flush, forcing browsers to load a new copy of the files, as the
// URL changed.
$query_string = '?'. substr(variable_get('css_js_query_string', '0'), 0, 1);
common.inc
..
}
我想这可以防止在本地缓存文件浏览器,是非常有用的在开发期间。一旦准备好启动,您可以在配置/性能管理部分打开CSS/JS聚合。 – Finbarr