---
title: CacheNone
description: The CacheNone() strategy instructs caches not to store any data.
api_version: 2026-04
source_url:
  html: 'https://shopify.dev/docs/api/hydrogen/latest/utilities/caching/cachenone'
  md: 'https://shopify.dev/docs/api/hydrogen/latest/utilities/caching/cachenone.md'
---

# CacheNone

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

  ```ts
  string
  ```

Examples

### Examples

* #### Example code

  ##### JavaScript

  ```js
  import {CacheNone} from '@shopify/hydrogen';

  export async function loader({context}) {
    const data = await context.storefront.query(
      `#grahpql
        {
          shop {
            name
            description
          }
        }
      `,
      {
        cache: CacheNone(),
      },
    );

    return data;
  }
  ```

  ##### TypeScript

  ```ts
  import {type LoaderFunctionArgs} from 'react-router';
  import {CacheNone} from '@shopify/hydrogen';

  export async function loader({context}: LoaderFunctionArgs) {
    const data = await context.storefront.query(
      `#grahpql
        {
          shop {
            name
            description
          }
        }
      `,
      {
        cache: CacheNone(),
      },
    );

    return data;
  }
  ```

***

## Related

[- createStorefrontClient](https://shopify.dev/docs/api/hydrogen/2026-04/utilities/createstorefrontclient)

[- CacheShort](https://shopify.dev/docs/api/hydrogen/2026-04/utilities/caching/cacheshort)

[- CacheLong](https://shopify.dev/docs/api/hydrogen/2026-04/utilities/caching/cachelong)

[- CacheCustom](https://shopify.dev/docs/api/hydrogen/2026-04/utilities/caching/cachecustom)

***
