{"id":1519,"date":"2026-11-27T18:00:00","date_gmt":"2026-11-27T18:00:00","guid":{"rendered":"https:\/\/wade.one\/blog\/?p=1519"},"modified":"2026-11-27T18:00:00","modified_gmt":"2026-11-27T18:00:00","slug":"no-cache-and-no-store-are-different-instructions","status":"publish","type":"post","link":"https:\/\/wade.one\/blog\/2026\/11\/27\/no-cache-and-no-store-are-different-instructions\/","title":{"rendered":"No-Cache and No-Store Are Different Instructions"},"content":{"rendered":"<p><code>Cache-Control: no-cache<\/code> is an annoyingly easy header to misread. Its name sounds like an instruction to avoid keeping a response. In HTTP caching, the unqualified response directive allows storage but requires successful validation before the stored response can satisfy another request. If the requirement is to prevent storage by an HTTP cache, <code>no-store<\/code> is the directive to examine.<\/p>\n<p>The distinction is in the <a href=\"https:\/\/www.rfc-editor.org\/rfc\/rfc9111.html#section-5.2.2\">HTTP caching specification<\/a>. It also defines <code>private<\/code>, which prevents a shared cache from storing the response while allowing a private cache to store it subject to the other rules. These instructions describe different behaviours. Choosing between them needs a decision about where storage is acceptable and when reuse should be allowed.<\/p>\n<p>I would check the response after it has travelled through the actual proxy or CDN, because that is where application intent can meet a different configuration. Inspect the headers, make a second request and check whether validation occurs or a stored response is served directly. Test more than one user when the response contains user-specific data. A good result for a single logged-in browser does not demonstrate that a shared cache separates people correctly.<\/p>\n<p>These headers govern HTTP caches; they are not a general promise that information cannot be retained anywhere. The specification explicitly warns that <code>no-store<\/code> alone is insufficient to ensure privacy. Application state, logging and other storage need their own decisions. I would write down the intended behaviour in plain English first, then choose and test the header that implements it. It is easier to review &#8220;the browser may store this but must validate before reuse&#8221; than to guess what somebody meant by &#8220;turn caching off&#8221;.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>No-cache allows storage with validation before reuse. No-store tells an HTTP cache not to store the response.<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[13],"tags":[349,272,306],"class_list":["post-1519","post","type-post","status-publish","format-standard","hentry","category-programming","tag-cache-control","tag-caching","tag-http"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>No-Cache and No-Store Are Different Instructions - wade.one<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/wade.one\/blog\/2026\/11\/27\/no-cache-and-no-store-are-different-instructions\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"No-Cache and No-Store Are Different Instructions - wade.one\" \/>\n<meta property=\"og:description\" content=\"No-cache allows storage with validation before reuse. No-store tells an HTTP cache not to store the response.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/wade.one\/blog\/2026\/11\/27\/no-cache-and-no-store-are-different-instructions\/\" \/>\n<meta property=\"og:site_name\" content=\"wade.one\" \/>\n<meta property=\"article:published_time\" content=\"2026-11-27T18:00:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/wade.one\/blog\/wp-content\/uploads\/2015\/02\/Wade-Logo-cropped.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1518\" \/>\n\t<meta property=\"og:image:height\" content=\"1506\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@wadewomersley\" \/>\n<meta name=\"twitter:site\" content=\"@wadewomersley\" \/>\n<meta name=\"twitter:label1\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/wade.one\\\/blog\\\/2026\\\/11\\\/27\\\/no-cache-and-no-store-are-different-instructions\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/wade.one\\\/blog\\\/2026\\\/11\\\/27\\\/no-cache-and-no-store-are-different-instructions\\\/\"},\"author\":{\"name\":\"\",\"@id\":\"\"},\"headline\":\"No-Cache and No-Store Are Different Instructions\",\"datePublished\":\"2026-11-27T18:00:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/wade.one\\\/blog\\\/2026\\\/11\\\/27\\\/no-cache-and-no-store-are-different-instructions\\\/\"},\"wordCount\":273,\"publisher\":{\"@id\":\"https:\\\/\\\/wade.one\\\/blog\\\/#\\\/schema\\\/person\\\/8b4739f8f8bb2cff5d792d4b8779fcc3\"},\"keywords\":[\"cache-control\",\"caching\",\"http\"],\"articleSection\":[\"Programming\"],\"inLanguage\":\"en-GB\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/wade.one\\\/blog\\\/2026\\\/11\\\/27\\\/no-cache-and-no-store-are-different-instructions\\\/\",\"url\":\"https:\\\/\\\/wade.one\\\/blog\\\/2026\\\/11\\\/27\\\/no-cache-and-no-store-are-different-instructions\\\/\",\"name\":\"No-Cache and No-Store Are Different Instructions - wade.one\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/wade.one\\\/blog\\\/#website\"},\"datePublished\":\"2026-11-27T18:00:00+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/wade.one\\\/blog\\\/2026\\\/11\\\/27\\\/no-cache-and-no-store-are-different-instructions\\\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/wade.one\\\/blog\\\/2026\\\/11\\\/27\\\/no-cache-and-no-store-are-different-instructions\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/wade.one\\\/blog\\\/2026\\\/11\\\/27\\\/no-cache-and-no-store-are-different-instructions\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/wade.one\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"No-Cache and No-Store Are Different Instructions\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/wade.one\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/wade.one\\\/blog\\\/\",\"name\":\"wade.one\",\"description\":\"wade womersley - york based software engineer\",\"publisher\":{\"@id\":\"https:\\\/\\\/wade.one\\\/blog\\\/#\\\/schema\\\/person\\\/8b4739f8f8bb2cff5d792d4b8779fcc3\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/wade.one\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/wade.one\\\/blog\\\/#\\\/schema\\\/person\\\/8b4739f8f8bb2cff5d792d4b8779fcc3\",\"name\":\"Wade Womersley\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/wade.one\\\/blog\\\/wp-content\\\/uploads\\\/2015\\\/02\\\/200px.png\",\"url\":\"https:\\\/\\\/wade.one\\\/blog\\\/wp-content\\\/uploads\\\/2015\\\/02\\\/200px.png\",\"contentUrl\":\"https:\\\/\\\/wade.one\\\/blog\\\/wp-content\\\/uploads\\\/2015\\\/02\\\/200px.png\",\"width\":202,\"height\":200,\"caption\":\"Wade Womersley\"},\"logo\":{\"@id\":\"https:\\\/\\\/wade.one\\\/blog\\\/wp-content\\\/uploads\\\/2015\\\/02\\\/200px.png\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"No-Cache and No-Store Are Different Instructions - wade.one","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/wade.one\/blog\/2026\/11\/27\/no-cache-and-no-store-are-different-instructions\/","og_locale":"en_GB","og_type":"article","og_title":"No-Cache and No-Store Are Different Instructions - wade.one","og_description":"No-cache allows storage with validation before reuse. No-store tells an HTTP cache not to store the response.","og_url":"https:\/\/wade.one\/blog\/2026\/11\/27\/no-cache-and-no-store-are-different-instructions\/","og_site_name":"wade.one","article_published_time":"2026-11-27T18:00:00+00:00","og_image":[{"width":1518,"height":1506,"url":"https:\/\/wade.one\/blog\/wp-content\/uploads\/2015\/02\/Wade-Logo-cropped.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_creator":"@wadewomersley","twitter_site":"@wadewomersley","twitter_misc":{"Estimated reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/wade.one\/blog\/2026\/11\/27\/no-cache-and-no-store-are-different-instructions\/#article","isPartOf":{"@id":"https:\/\/wade.one\/blog\/2026\/11\/27\/no-cache-and-no-store-are-different-instructions\/"},"author":{"name":"","@id":""},"headline":"No-Cache and No-Store Are Different Instructions","datePublished":"2026-11-27T18:00:00+00:00","mainEntityOfPage":{"@id":"https:\/\/wade.one\/blog\/2026\/11\/27\/no-cache-and-no-store-are-different-instructions\/"},"wordCount":273,"publisher":{"@id":"https:\/\/wade.one\/blog\/#\/schema\/person\/8b4739f8f8bb2cff5d792d4b8779fcc3"},"keywords":["cache-control","caching","http"],"articleSection":["Programming"],"inLanguage":"en-GB"},{"@type":"WebPage","@id":"https:\/\/wade.one\/blog\/2026\/11\/27\/no-cache-and-no-store-are-different-instructions\/","url":"https:\/\/wade.one\/blog\/2026\/11\/27\/no-cache-and-no-store-are-different-instructions\/","name":"No-Cache and No-Store Are Different Instructions - wade.one","isPartOf":{"@id":"https:\/\/wade.one\/blog\/#website"},"datePublished":"2026-11-27T18:00:00+00:00","breadcrumb":{"@id":"https:\/\/wade.one\/blog\/2026\/11\/27\/no-cache-and-no-store-are-different-instructions\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/wade.one\/blog\/2026\/11\/27\/no-cache-and-no-store-are-different-instructions\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/wade.one\/blog\/2026\/11\/27\/no-cache-and-no-store-are-different-instructions\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/wade.one\/blog\/"},{"@type":"ListItem","position":2,"name":"No-Cache and No-Store Are Different Instructions"}]},{"@type":"WebSite","@id":"https:\/\/wade.one\/blog\/#website","url":"https:\/\/wade.one\/blog\/","name":"wade.one","description":"wade womersley - york based software engineer","publisher":{"@id":"https:\/\/wade.one\/blog\/#\/schema\/person\/8b4739f8f8bb2cff5d792d4b8779fcc3"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/wade.one\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":["Person","Organization"],"@id":"https:\/\/wade.one\/blog\/#\/schema\/person\/8b4739f8f8bb2cff5d792d4b8779fcc3","name":"Wade Womersley","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/wade.one\/blog\/wp-content\/uploads\/2015\/02\/200px.png","url":"https:\/\/wade.one\/blog\/wp-content\/uploads\/2015\/02\/200px.png","contentUrl":"https:\/\/wade.one\/blog\/wp-content\/uploads\/2015\/02\/200px.png","width":202,"height":200,"caption":"Wade Womersley"},"logo":{"@id":"https:\/\/wade.one\/blog\/wp-content\/uploads\/2015\/02\/200px.png"}}]}},"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":1476,"url":"https:\/\/wade.one\/blog\/2026\/11\/02\/http-304-means-the-cached-copy-is-still-useful\/","url_meta":{"origin":1519,"position":0},"title":"HTTP 304 Means the Cached Copy Is Still Useful","author":"","date":"November 2, 2026","format":false,"excerpt":"An HTTP 304 response is supposed to arrive without a response body.","rel":"","context":"In &quot;Programming&quot;","block_context":{"text":"Programming","link":"https:\/\/wade.one\/blog\/category\/programming\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1440,"url":"https:\/\/wade.one\/blog\/2026\/10\/21\/hashed-asset-names-make-cdn-releases-easier-to-reason-about\/","url_meta":{"origin":1519,"position":1},"title":"Hashed Asset Names Make CDN Releases Easier to Reason About","author":"","date":"October 21, 2026","format":false,"excerpt":"Replacing app.js and hoping every cache forgets the old version is a fairly unpleasant deployment strategy.","rel":"","context":"In &quot;Programming&quot;","block_context":{"text":"Programming","link":"https:\/\/wade.one\/blog\/category\/programming\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1118,"url":"https:\/\/wade.one\/blog\/2023\/03\/26\/expanding-on-performance-of-redis-vs-mongodb-for-a-push-pull-system\/","url_meta":{"origin":1519,"position":2},"title":"Expanding on performance of Redis vs MongoDB for a push\/pull system","author":"Wade","date":"March 26, 2023","format":false,"excerpt":"When it comes to building a push\/pop system, both Redis and MongoDB can be used as effective solutions. However, there are a few key differences between these two databases that can impact which one you choose for your system. Redis is an in-memory data structure store that can be used\u2026","rel":"","context":"In &quot;PHP&quot;","block_context":{"text":"PHP","link":"https:\/\/wade.one\/blog\/category\/php\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":556,"url":"https:\/\/wade.one\/blog\/2011\/04\/25\/automating-implemented-methods-for-a-web-based-api\/","url_meta":{"origin":1519,"position":3},"title":"Automating &#8220;Implemented methods&#8221; for a web based API","author":"Wade","date":"April 25, 2011","format":false,"excerpt":"In my leedsphp talk last week I mentioned making a developer (and consumers) life easier by automatically implementing the allow methods functionality that your API may expose (e.g. you call PUT on a URL that only allows GET or POST). I did have an example slide there showing how to\u2026","rel":"","context":"In &quot;Programming&quot;","block_context":{"text":"Programming","link":"https:\/\/wade.one\/blog\/category\/programming\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1177,"url":"https:\/\/wade.one\/blog\/2026\/04\/09\/offline-support-sounds-smaller-than-it-is\/","url_meta":{"origin":1519,"position":4},"title":"Offline Support Sounds Smaller Than It Is","author":"Wade","date":"April 9, 2026","format":false,"excerpt":"Offline support looks like a simple feature request until you have to deal with stale data, sync conflicts, retry rules, and user expectations. The hard part is not storing data locally. It is keeping the whole system honest.","rel":"","context":"In &quot;Programming&quot;","block_context":{"text":"Programming","link":"https:\/\/wade.one\/blog\/category\/programming\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":206,"url":"https:\/\/wade.one\/blog\/2009\/10\/10\/phpnw-09-food-and-optimising-front-end-performance\/","url_meta":{"origin":1519,"position":5},"title":"PHPNW 09 &#8211; Food and Optimising front end performance","author":"Wade","date":"October 10, 2009","format":false,"excerpt":"So lunch was 'so-so' - the dauphinoise were undercooked,\u00a0 the duck sauce was too strong and overpowered the duck (probably good as they were rather cheap legs.) \"Optimising your front end performance\" was a very mixed talk. There were some generalisations that were seriously poor such as \"80% of access\u2026","rel":"","context":"In &quot;Programming&quot;","block_context":{"text":"Programming","link":"https:\/\/wade.one\/blog\/category\/programming\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/wade.one\/blog\/wp-json\/wp\/v2\/posts\/1519","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wade.one\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wade.one\/blog\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/wade.one\/blog\/wp-json\/wp\/v2\/comments?post=1519"}],"version-history":[{"count":1,"href":"https:\/\/wade.one\/blog\/wp-json\/wp\/v2\/posts\/1519\/revisions"}],"predecessor-version":[{"id":1534,"href":"https:\/\/wade.one\/blog\/wp-json\/wp\/v2\/posts\/1519\/revisions\/1534"}],"wp:attachment":[{"href":"https:\/\/wade.one\/blog\/wp-json\/wp\/v2\/media?parent=1519"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wade.one\/blog\/wp-json\/wp\/v2\/categories?post=1519"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wade.one\/blog\/wp-json\/wp\/v2\/tags?post=1519"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}