啟用 KeepAlive(Apache 2.0)

HTTP / 1.0 的 Keep-Alive 擴充套件和 HTTP / 1.1 的持久連線功能提供了長期的 HTTP 會話,允許通過同一 TCP 連線傳送多個請求。在某些情況下,這已經證明,對於包含許多影象的 HTML 文件,延遲時間幾乎可以加快 50%。要啟用 Keep-Alive 連線,請將 KeepAlive 設定為 On。 - Apache Docs

# Enable KeepAlive
KeepAlive On

# OPTIONAL — limit the amount of requests per connection with 'MaxKeepAliveRequests'
# Example: MaxKeepAliveRequests 500

# OPTIONAL — limit the amount of time the server will wait before it closes 
# the connection with 'KeepAliveTimeout'
# Example: KeepAliveTimeout 500

Apache Docs