* 仕様書から ** RFC 2068 (HTTP/1.1) 19.7.1.1 The Keep-Alive Header > When the Keep-Alive connection-token has been transmitted with a request or a response, a Keep-Alive header field MAY also be included. The Keep-Alive header field takes the following form: [CODE(HTTP)[Keep-Alive]] [CODE(ABNF)[connection-token]] が要求または応答で転送されるとき、 [CODE(HTTP)[Keep-Alive]] 頭欄をも含めて'''構いません'''。 [CODE(HTTP)[Keep-Alive]] 頭欄は、次の書式を取ります。 > - Keep-Alive-header = "Keep-Alive" ":" 0# keepalive-param - keepalive-param = param-name "=" value > The Keep-Alive header itself is optional, and is used only if a parameter is being sent. HTTP/1.1 does not define any parameters. [CODE(HTTP)[Keep-Alive]] 頭自体は省略可能で、引数が送られるときのみ使用します。 HTTP/1.1 は引数を定義しません。 > If the Keep-Alive header is sent, the corresponding connection token MUST be transmitted. The Keep-Alive header MUST be ignored if received without the connection token. [CODE(HTTP)[Keep-Alive]] 頭が送られる場合、対応する接続字句を転送しなければ'''なりません'''。 [CODE(HTTP)[Keep-Alive]] 頭は、接続字句なしで受信した場合には無視しなければ'''なりません'''。 ** RFC の部分の License [[RFCのライセンス]] * 例 - [1] [SAMP(HTTP)[Keep-Alive: timeout=25, max=85]] - [2] [CODE(HTTP)[Keep-Alive: 300]] [4] 6 ([[名無しさん]] [WEAK[2004-05-23 23:38:15 +00:00]]) [[#comment]] * メモ - [3] >>2 は [[Mozilla]], >>3 は [[Apache]] [5] [CITE[kinnekoの日記 - IE は KeepAlive をうまく処理できない?]] ([CODE[2007-02-11 10:02:17 +09:00]] 版) ([[名無しさん]]) [6] [CITE@ja[世界初オタク系SNS『オタバ』公式ブログ: 【Internet Explorer系ブラウザについて】]] ([CODE[2006-10-29 16:47:05 +09:00]] 版) ([[名無しさん]]) [7] [CITE[最速インターフェース研究会 :: 最近IE6でWikipedia日本語版の表示が異常に遅いのはKeepAliveのせい]] ([TIME[2007-02-11 10:05:32 +09:00]] 版) [8] [CITE[Apache HTTP Server Project]] ( ([TIME[2011-05-28 00:58:55 +09:00]] 版))