ETag に "W/" がついたりつかなかったりする
httpd-2.2.22 の modules/http/http_etag.c の app_make_etag 関数のコメントに、以下のように書いてある。
/* * Construct an entity tag (ETag) from resource information. If it's a real * file, build in some of the file characteristics. If the modification time * is newer than (request-time minus 1 second), mark the ETag as weak - it * could be modified again in as short an interval. We rationalize the * modification time we're given to keep it from being in the future. */
そのファイルの最終更新時刻とリクエスト時刻が 1 秒以内だと、"弱い"ETag を返すようだ。
その理由は、「 it could be modified again in as short an interval.」だそうだ。