Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/performance/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Performance 浏览器是;“连接”;对网站的每个页面进行更改_Performance_Apache_Networking_Google Chrome Devtools_Varnish - Fatal编程技术网

Performance 浏览器是;“连接”;对网站的每个页面进行更改

Performance 浏览器是;“连接”;对网站的每个页面进行更改,performance,apache,networking,google-chrome-devtools,varnish,Performance,Apache,Networking,Google Chrome Devtools,Varnish,在Chrome开发工具中,在“网络”选项卡上,第一次加载普通网站(如StackOverflow)的HTML页面如下所示: 。。。如果我继续浏览此网站,“连接”时间不再存在,对HTML文件的请求如下所示: 但是,在我正在开发的网站上,“连接”时间出现在每个页面加载上: “连接”状态解释为:“建立连接所需的时间,包括TCP握手/重试、DNS查找以及连接到代理或协商安全套接字层(SSL)的时间。” 我正在使用apache并将请求发送到简单的静态文件。您知道这是什么原因吗?服务器配置中可能有什么错

在Chrome开发工具中,在“网络”选项卡上,第一次加载普通网站(如StackOverflow)的HTML页面如下所示:

。。。如果我继续浏览此网站,“连接”时间不再存在,对HTML文件的请求如下所示:

但是,在我正在开发的网站上,“连接”时间出现在每个页面加载上:

“连接”状态解释为:“建立连接所需的时间,包括TCP握手/重试、DNS查找以及连接到代理或协商安全套接字层(SSL)的时间。”


我正在使用apache并将请求发送到简单的静态文件。您知道这是什么原因吗?服务器配置中可能有什么错误?

Keepalive没有发生?用Wireshark检查流量,看看服务器是否每次都在关闭连接。@JimGarrison,非常感谢,您的回复给了我正确的方向,我已经找到了答案。我使用的是Varnish,它有一个选项sess_timeout,我猜这是会话关闭时的超时。默认设置为5秒。你认为如果我把时间增加到30秒,会有什么问题吗?