--- title: CacheNone description: >- The CacheNone() strategy instructs caches not to store any data. The function accepts no arguments. Learn more about [data fetching in Hydrogen](/docs/custom-storefronts/hydrogen/data-fetching/fetch-data). api_version: 2023-07 api_name: hydrogen source_url: html: 'https://shopify.dev/docs/api/hydrogen/2023-07/utilities/cachenone' md: 'https://shopify.dev/docs/api/hydrogen/2023-07/utilities/cachenone.md' --- # Cache​None The CacheNone() strategy instructs caches not to store any data. The function accepts no arguments. Learn more about [data fetching in Hydrogen](https://shopify.dev/docs/custom-storefronts/hydrogen/data-fetching/fetch-data). ## cache​None() ### Returns * NoStoreStrategy ### NoStoreStrategy * mode string ### NoStoreStrategy * mode ```ts string ``` ```ts { mode: string; } ``` ### Examples * #### Example code ##### Description I am the default example ##### JavaScript ```js import {json} from '@shopify/remix-oxygen'; import {CacheNone} from '@shopify/hydrogen'; export async function loader({context}) { const data = await context.storefront.query( `#grahpql { shop { name description } }`, { cache: CacheNone(), }, ); return json(data); } ``` ##### TypeScript ```ts import {json, type LoaderArgs} from '@shopify/remix-oxygen'; import {CacheNone} from '@shopify/hydrogen'; export async function loader({context}: LoaderArgs) { const data = await context.storefront.query( `#grahpql { shop { name description } }`, { cache: CacheNone(), }, ); return json(data); } ``` ## Related [- createStorefrontClient](https://shopify.dev/docs/api/hydrogen/2023-07/utilities/createstorefrontclient) [- CacheShort](https://shopify.dev/docs/api/hydrogen/2023-07/utilities/cacheshort) [- CacheLong](https://shopify.dev/docs/api/hydrogen/2023-07/utilities/cachelong) [- CacheCustom](https://shopify.dev/docs/api/hydrogen/2023-07/utilities/cachecustom)