--- title: 304 Not Modified slug: Web/HTTP/Status/304 tags: - HTTP - HTTP-Statuscode - Statuscode - Weiterleitung translation_of: Web/HTTP/Status/304 --- <div>{{HTTPSidebar}}</div> <div> <p>Der HTTP-Statuscode <code><strong>304 Not Modified </strong></code> gibt an, dass die angeforderten Ressourcen nicht erneut übertragen werden müssen. Es handelt sich um eine implizite Weiterleitung zu einer zwischengespeicherten Ressource. Dies geschieht, wenn die Anforderungsmethode {{glossary("safe")}} ist, wie eine {{HTTPMethod("GET")}}- oder {{HTTPMethod("HEAD")}}-Anfrage oder wenn die Anfrage bedingt ist und einen {{HTTPHeader("If-None-Match")}}- oder {{HTTPHeader("If-Modified-Since")}}-Header verwendet.</p> <p>Eine entsprechende Antwort mit {{HTTPStatus("200")}} <code>OK</code> hätte die Header {{HTTPHeader("Cache-Control")}}, {{HTTPHeader("Content-Location")}}, {{HTTPHeader("Date")}}, {{HTTPHeader("ETag")}}, {{HTTPHeader("Expires")}}, und {{HTTPHeader("Vary")}} enthalten.</p> </div> <div></div> <div class="note"> <p>Many <a href="/en-US/docs/Tools/Network_Monitor">developer tools' network panels</a> of browsers create extraneous requests leading to <code>304</code> responses, so that access to the local cache is visible to developers.</p> </div> <h2 id="Status">Status</h2> <pre class="syntaxbox">304 Not Modified</pre> <h2 id="Spezifikationen">Spezifikationen</h2> <table class="standard-table"> <tbody> <tr> <th scope="col">Spezifikation</th> <th scope="col">Titel</th> </tr> <tr> <td>{{RFC("7232", "304 Not Modified" , "4.1")}}</td> <td>Hypertext Transfer Protocol (HTTP/1.1): Conditional Requests</td> </tr> </tbody> </table> <h2 id="Browserkompatibilität">Browserkompatibilität</h2> <p>{{Compat("http.status.304")}}</p> <h2 id="Anmerkungen_zur_Kompatibilität">Anmerkungen zur Kompatibilität</h2> <ul> <li>Browser verhalten sich unterschiedlich, wenn zu dieser Antwort im Rahmen einer persistenten Verbindung fälschlicherweise ein Body geliefert wird. Genaueres siehe <a href="/en-US/docs/Web/HTTP/Status/204">204 No Content</a>.</li> </ul> <h2 id="Siehe_auch">Siehe auch</h2> <ul> <li>{{HTTPHeader("If-Modified-Since")}}</li> <li>{{HTTPHeader("If-None-Match")}}</li> </ul>