用Symfony 2.1.13编写的应用程序的部分用户打开非常缓慢。 我发现了一个问题。对于这些由于某种原因打开速度较慢的用户,浏览器尝试下载所有css / js文件,但无法执行此操作(403):
xxx.xxx.xxx.xxx - user_1 [28/Feb/2019:12:40:10 +0100] "GET / HTTP/1.1" 200 (...)
xxx.xxx.xxx.xxx - user_1 [28/Feb/2019:12:40:22 +0100] "GET /css/reset.css HTTP/1.1" 304 (...)
xxx.xxx.xxx.xxx - user_1 [28/Feb/2019:12:40:27 +0100] "GET /css/lib/chosen.css HTTP/1.1" 304 (...)
xxx.xxx.xxx.xxx - user_1 [28/Feb/2019:12:40:33 +0100] "GET /css/lib/jquery-ui.min.css HTTP/1.1" 304 (...)
xxx.xxx.xxx.xxx - user_1 [28/Feb/2019:12:40:39 +0100] "GET /css/lib/jquery-ui.structure.min.css HTTP/1.1" 304 (...)
xxx.xxx.xxx.xxx - user_1 [28/Feb/2019:12:40:45 +0100] "GET /css/lib/jquery-ui.theme.min.css HTTP/1.1" 304 (...)
xxx.xxx.xxx.xxx - user_1 [28/Feb/2019:12:40:51 +0100] "GET /css/prod/prod_css.css HTTP/1.1" 304 (...)
xxx.xxx.xxx.xxx - user_1 [28/Feb/2019:12:40:57 +0100] "GET /js/lib/jquery.min.js HTTP/1.1" 304 (...)
xxx.xxx.xxx.xxx - user_1 [28/Feb/2019:12:41:04 +0100] "GET /js/lib/jquery-ui.min.js HTTP/1.1" 304 (...)
xxx.xxx.xxx.xxx - user_1 [28/Feb/2019:12:41:10 +0100] "GET /js/lib/chosen.jquery.min.js HTTP/1.1" 304 (...)
xxx.xxx.xxx.xxx - user_1 [28/Feb/2019:12:41:16 +0100] "GET /js/lib/chosen.proto.min.js HTTP/1.1" 304 (...)
xxx.xxx.xxx.xxx - user_1 [28/Feb/2019:12:41:22 +0100] "GET /js/lib/clipboard.min.js HTTP/1.1" 304 (...)
xxx.xxx.xxx.xxx - user_1 [28/Feb/2019:12:41:28 +0100] "GET /js/lib/chosen.jquery.min.js HTTP/1.1" 304 (...)
xxx.xxx.xxx.xxx - user_1 [28/Feb/2019:12:41:34 +0100] "GET /js/lib/simplemodal.min.js HTTP/1.1" 304 (...)
xxx.xxx.xxx.xxx - user_1 [28/Feb/2019:12:41:40 +0100] "GET /js/prod/prod_js.js HTTP/1.1" 304 (...)
xxx.xxx.xxx.xxx - user_1 [28/Feb/2019:12:41:46 +0100] "GET /images/ajax-loader.gif HTTP/1.1" 304 (...)
xxx.xxx.xxx.xxx - user_1 [28/Feb/2019:12:41:46 +0100] "GET /images/phone2.png HTTP/1.1" 304 (...)
xxx.xxx.xxx.xxx - user_1 [28/Feb/2019:12:41:46 +0100] "GET /images/scrollup.png HTTP/1.1" 304 (...)
对于那些工作迅速的用户,应获取应有的版本或最低版本:
xxx.xxx.xxx.xxx - user_2 [28/Feb/2019:12:42:32 +0100] "GET / HTTP/1.1" 200 (...)
xxx.xxx.xxx.xxx - user_2 [28/Feb/2019:12:42:32 +0100] "GET /css/prod/prod_css.css HTTP/1.1" 200 (...)
xxx.xxx.xxx.xxx - user_2 [28/Feb/2019:12:42:33 +0100] "GET /js/prod/prod_js.js HTTP/1.1" 200 (...)
我想指出的是,我已经排除了浏览器,系统等,因为如果在同一台计算机和浏览器上,它以(以...身份运行)登录两个用户,则它们将是相同的(慢会很慢,正常工作会正常工作
有人知道为什么会这样吗?
编辑
它修复了两天,问题再次出现。网络分析器显示:ibb.co/Y7V3HHL是同一台计算机,但是另一个用户登录到浏览器(通过“以其他用户身份运行”选项):ibb.co/QXhsfZP
该用户的ssl_access_log :
my_ip - user_3 [04/Mar/2019:08:15:17 +0100] "GET / HTTP/1.1" 200 72983 "-" (...)
my_ip - user_3 [04/Mar/2019:08:15:28 +0100] "GET /css/reset.css HTTP/1.1" 200 930 "https://web_name.pl/" (...)
my_ip - user_3 [04/Mar/2019:08:15:34 +0100] "GET /css/lib/chosen.css HTTP/1.1" 200 13478 "https://web_name.pl/" (...)
my_ip - user_3 [04/Mar/2019:08:15:39 +0100] "GET /css/lib/jquery-ui.min.css HTTP/1.1" 200 31030 "https://web_name.pl/" (...)
my_ip - - [04/Mar/2019:08:15:48 +0100] "-" 408 - "-" "-" (...)
my_ip - user_3 [04/Mar/2019:08:15:45 +0100] "GET /css/lib/jquery-ui.structure.min.css HTTP/1.1" 200 15548 "https://web_name.pl/" (...)
my_ip - user_3 [04/Mar/2019:08:15:51 +0100] "GET /css/lib/jquery-ui.theme.min.css HTTP/1.1" 200 13889 "https://web_name.pl/" (...)
my_ip - user_3 [04/Mar/2019:08:15:57 +0100] "GET /css/prod/xxx.css HTTP/1.1" 200 18022 "https://web_name.pl/" (...)
my_ip - user_3 [04/Mar/2019:08:16:03 +0100] "GET /js/lib/jquery.min.js HTTP/1.1" 200 93033 "https://web_name.pl/" (...)
my_ip - user_3 [04/Mar/2019:08:16:09 +0100] "GET /js/lib/jquery-ui.min.js HTTP/1.1" 200 253668 "https://web_name.pl/" (...)
my_ip - user_3 [04/Mar/2019:08:16:15 +0100] "GET /js/lib/chosen.jquery.min.js HTTP/1.1" 200 44133 "https://web_name.pl/" (...)
my_ip - user_3 [04/Mar/2019:08:16:21 +0100] "GET /js/lib/chosen.proto.min.js HTTP/1.1" 200 28322 "https://web_name.pl/" (...)
my_ip - user_3 [04/Mar/2019:08:16:27 +0100] "GET /js/lib/clipboard.min.js HTTP/1.1" 200 10000 "https://web_name.pl/" (...)
my_ip - user_3 [04/Mar/2019:08:16:33 +0100] "GET /js/lib/chosen.jquery.min.js HTTP/1.1" 304 - "https://web_name.pl/" (...)
my_ip - user_3 [04/Mar/2019:08:16:39 +0100] "GET /js/lib/simplemodal.min.js HTTP/1.1" 200 9776 "https://web_name.pl/" (...)
my_ip - user_3 [04/Mar/2019:08:16:45 +0100] "GET /js/prod/xxx.js HTTP/1.1" 200 43341 "https://web_name.pl/" (...)
my_ip - user_3 [04/Mar/2019:08:16:51 +0100] "GET /images/ajax-loader.gif HTTP/1.1" 200 3208 "https://web_name.pl/" (...)
my_ip - user_3 [04/Mar/2019:08:16:52 +0100] "GET /images/scrollup.png HTTP/1.1" 200 1812 "https://web_name.pl/" (...)
my_ip - user_3 [04/Mar/2019:08:16:52 +0100] "GET /images/phone2.png HTTP/1.1" 200 431 "https://web_name.pl/" (...)
my_ip - user_3 [04/Mar/2019:08:16:57 +0100] "GET /favicon.ico HTTP/1.1" 200 1580 "-" (...)