{"id":56,"date":"2018-03-17T17:55:28","date_gmt":"2018-03-17T16:55:28","guid":{"rendered":"http:\/\/test.ekiwi.de\/?p=56"},"modified":"2018-03-17T17:55:28","modified_gmt":"2018-03-17T16:55:28","slug":"caching-einer-html-seite-verhindern","status":"publish","type":"post","link":"https:\/\/ekiwi.de\/index.php\/56\/caching-einer-html-seite-verhindern\/","title":{"rendered":"Caching einer HTML-Seite verhindern"},"content":{"rendered":"<p>Browser cachen Webseiten, so dass diese nicht stets erneut geladen werden m\u00fcssen. Dies ist sinnvoll, da sich Inhalte und Bilder oft nicht \u00e4ndern. Allerdings kann es sein, dass man als Webmaster das verhalten direkt steuern m\u00f6chte und ein Caching verhindern will.<\/p>\n<p> Dies geht recht leicht mit folgendem Code:<\/p>\n<pre>  \r\n&lt;meta http-equiv=\"cache-control\" content=\"max-age=0\" \/&gt;\r\n&lt;meta http-equiv=\"cache-control\" content=\"no-cache\" \/&gt;\r\n&lt;meta http-equiv=\"expires\" content=\"0\" \/&gt;\r\n&lt;meta http-equiv=\"expires\" content=\"Tue, 01 Jan 1980 1:00:00 GMT\" \/&gt;\r\n&lt;meta http-equiv=\"pragma\" content=\"no-cache\" \/&gt;\r\n<\/pre>","protected":false},"excerpt":{"rendered":"<p>Browser cachen Webseiten, so dass diese nicht stets erneut geladen werden m\u00fcssen. Dies ist sinnvoll, da sich Inhalte und Bilder<\/p>\n","protected":false},"author":1,"featured_media":61,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_links_to":"","_links_to_target":""},"categories":[5],"tags":[6,4],"class_list":["post-56","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-hmtl","tag-caching","tag-html"],"_links":{"self":[{"href":"https:\/\/ekiwi.de\/index.php\/wp-json\/wp\/v2\/posts\/56","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ekiwi.de\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ekiwi.de\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ekiwi.de\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ekiwi.de\/index.php\/wp-json\/wp\/v2\/comments?post=56"}],"version-history":[{"count":0,"href":"https:\/\/ekiwi.de\/index.php\/wp-json\/wp\/v2\/posts\/56\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ekiwi.de\/index.php\/wp-json\/wp\/v2\/media\/61"}],"wp:attachment":[{"href":"https:\/\/ekiwi.de\/index.php\/wp-json\/wp\/v2\/media?parent=56"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ekiwi.de\/index.php\/wp-json\/wp\/v2\/categories?post=56"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ekiwi.de\/index.php\/wp-json\/wp\/v2\/tags?post=56"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}