我正在尝试使 pagespeed 模块按预期工作,但问题是 - 一些脚本被缩小但一些脚本被 ingored...
我通过 nginx echo 模块将两个脚本合二为一
/location total.js {
echo_location 'first.js';
echo_location 'second.js';
}
/location terminal.js {
echo_location 'first_terminal.js';
echo_location 'second_terminal.js';
}
然后我试图缩小它们:
pagespeed On;
pagespeed UseExperimentalJsMinifier on;
pagespeed FileCachePath /dev/shm/pageSpeedCache;
pagespeed EnableFilters rewrite_javascript,combine_css,combine_javascript,fallback_rewrite_css_urls,collapse_whitespace;
第一个脚本来自 nginx Minified,但第二个不是Minified。nginx.error.log 中没有任何内容
什么可以阻止页面速度缩小,我应该如何解决这个问题?