--- title: Last-Modified slug: Web/HTTP/Headers/Last-Modified tags: - HTTP - HTTP ヘッダー - Reference - レスポンスヘッダー translation_of: Web/HTTP/Headers/Last-Modified --- <div>{{HTTPSidebar}}</div> <p>HTTP の <strong><code>Last-Modified</code></strong> レスポンスヘッダーは、リソースが最後に変更されたとオリジンのサーバーが判断している日時を含みます。これは受信または保存されたリソースが、同じものであるかを判断する検証材料として使用されます。 {{HTTPHeader("ETag")}} ヘッダーよりも精度は低く、その代替手段になります。 {{HTTPHeader("If-Modified-Since")}} や {{HTTPHeader("If-Unmodified-Since")}} ヘッダーを含む条件付きリクエストはこのフィールドを使用します。</p> <table class="properties"> <tbody> <tr> <th scope="row">ヘッダー種別</th> <td>{{Glossary("Response header", "レスポンスヘッダー")}}</td> </tr> <tr> <th scope="row">{{Glossary("Forbidden header name", "禁止ヘッダー名")}}</th> <td>いいえ</td> </tr> <tr> <th scope="row">{{Glossary("CORS-safelisted response header", "CORS セーフリストレスポンスヘッダー")}}</th> <td>はい</td> </tr> </tbody> </table> <h2 id="Syntax" name="Syntax">構文</h2> <pre class="syntaxbox">Last-Modified: <day-name>, <day> <month> <year> <hour>:<minute>:<second> GMT </pre> <h2 id="Directives" name="Directives">ディレクティブ</h2> <dl> <dt><day-name></dt> <dd>"Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun" の中から一つ (大文字・小文字の区別あり)</dd> <dt><day></dt> <dd>2桁の日付を表す数字, 例 "04" や "23".</dd> <dt><month></dt> <dd>"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" の中から一つ (大文字・小文字の区別あり)</dd> <dt><year></dt> <dd>4桁の年を表す数字, 例 "1990" や "2016"</dd> <dt><hour></dt> <dd>2桁の時を表す数字, 例 "09" や "23"</dd> <dt><minute></dt> <dd>2桁の分を表す数字, 例 "04" や "59"</dd> <dt><second></dt> <dd>2桁の秒を表す数字, 例 "04" や "59"</dd> <dt><code>GMT</code></dt> <dd> <p>グリニッジ標準時。 HTTP における時刻は常にグリニッジ標準時で表され、ローカル時刻になることはありません。</p> </dd> </dl> <h2 id="Examples" name="Examples">例</h2> <pre>Last-Modified: Wed, 21 Oct 2015 07:28:00 GMT </pre> <h2 id="Specifications" name="Specifications">仕様書</h2> <table class="standard-table"> <thead> <tr> <th scope="col">仕様書</th> <th scope="col">題名</th> </tr> </thead> <tbody> <tr> <td>{{RFC("7232", "Last-Modified", "2.2")}}</td> <td>Hypertext Transfer Protocol (HTTP/1.1): Conditional Requests</td> </tr> </tbody> </table> <h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの互換性</h2> <p>{{Compat("http.headers.Last-Modified")}}</p> <h2 id="See_also" name="See_also">関連情報</h2> <ul> <li>{{HTTPHeader("If-Modified-Since")}}</li> <li>{{HTTPHeader("If-Unmodified-Since")}}</li> <li>{{HTTPHeader("Etag")}}</li> </ul>