読者です 読者をやめる 読者になる 読者になる

はてなアンテナのETag

さっき、気がついたんだけども、FileETagにinodeが含まれたまま、Apacheのロードバランスしてるんじゃないのかなぁ。なので、Apacheは別ファイルだと思って再度ファイルの中身を返しているようだ。もったいないもったいない。

http://a.hatena.ne.jp/js/MochiKit/DOM.js

GET /js/MochiKit/DOM.js HTTP/1.1
Host: a.hatena.ne.jp
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; ja; rv:1.9.2.3) Gecko/20100423 Ubuntu/10.04 (lucid) Firefox/3.6.3
Accept: */*
Accept-Language: ja,en-us;q=0.7,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: UTF-8,*
Keep-Alive: 115
Connection: keep-alive
Referer: http://a.hatena.ne.jp/komamitsu/detail
If-Modified-Since: Fri, 23 May 2008 05:03:16 GMT
If-None-Match: "c11291-8215-44ddebf652d00"
Cache-Control: max-age=0

HTTP/1.1 200 OK
Date: Fri, 25 Jun 2010 06:49:59 GMT
Server: Apache
Last-Modified: Fri, 23 May 2008 05:03:16 GMT
Etag: "1d0a74-8215-44ddebf652d00"
Accept-Ranges: bytes
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 6610
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Content-Type: application/x-javascript
http://a.hatena.ne.jp/js/MochiKit/DOM.js

GET /js/MochiKit/DOM.js HTTP/1.1
Host: a.hatena.ne.jp
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; ja; rv:1.9.2.3) Gecko/20100423 Ubuntu/10.04 (lucid) Firefox/3.6.3
Accept: */*
Accept-Language: ja,en-us;q=0.7,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: UTF-8,*
Keep-Alive: 115
Connection: keep-alive
Referer: http://a.hatena.ne.jp/komamitsu/detail
If-Modified-Since: Fri, 23 May 2008 05:03:16 GMT
If-None-Match: "1d0a74-8215-44ddebf652d00"
Cache-Control: max-age=0

HTTP/1.1 200 OK
Date: Fri, 25 Jun 2010 07:07:30 GMT
Server: Apache
Last-Modified: Fri, 23 May 2008 05:03:16 GMT
Etag: "c11291-8215-44ddebf652d00"
Accept-Ranges: bytes
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 6610
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Content-Type: application/x-javascript