{"id":515904,"date":"2026-07-18T03:03:00","date_gmt":"2026-07-18T03:03:00","guid":{"rendered":"https:\/\/livelycity.com\/switzerland\/fetch-how-do-you-make-a-non-cached-request\/"},"modified":"2026-07-18T03:03:00","modified_gmt":"2026-07-18T03:03:00","slug":"fetch-how-do-you-make-a-non-cached-request","status":"publish","type":"post","link":"https:\/\/livelycity.com\/switzerland\/fetch-how-do-you-make-a-non-cached-request\/","title":{"rendered":"fetch (), how do you make a non-cached request?"},"content":{"rendered":"<p>Fetch can take an init object containing many custom settings that you might want to apply to the request, this includes an option called &#8220;headers&#8221;. The &#8220;headers&#8221; option takes a Header object. This object allows you to configure the headers you want to add to your request. By adding pragma: no-cache and a cache-control: no-cache to your header you will force the browser to check the server to &#8230;<\/p>\n<p><a href=\"https:\/\/stackoverflow.com\/questions\/29246444\/fetch-how-do-you-make-a-non-cached-request\" target=\"_blank\" class=\"\">https:\/\/stackoverflow.com\/questions\/29246444\/fetch-how-do-you-make-a-non-cached-request<\/a>\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Fetch can take an init object containing many custom settings that you might want to apply to the request, this includes an option called &#8220;headers&#8221;&#8230;.<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[13],"tags":[],"class_list":["post-515904","post","type-post","status-publish","format-standard","hentry","category-kunsthaus-zurich-en","wpcat-13-id"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/livelycity.com\/switzerland\/wp-json\/wp\/v2\/posts\/515904","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/livelycity.com\/switzerland\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/livelycity.com\/switzerland\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/livelycity.com\/switzerland\/wp-json\/wp\/v2\/comments?post=515904"}],"version-history":[{"count":0,"href":"https:\/\/livelycity.com\/switzerland\/wp-json\/wp\/v2\/posts\/515904\/revisions"}],"wp:attachment":[{"href":"https:\/\/livelycity.com\/switzerland\/wp-json\/wp\/v2\/media?parent=515904"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/livelycity.com\/switzerland\/wp-json\/wp\/v2\/categories?post=515904"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/livelycity.com\/switzerland\/wp-json\/wp\/v2\/tags?post=515904"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}