---
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: 2024-07
api_name: hydrogen
source_url:
  html: 'https://shopify.dev/docs/api/hydrogen/2024-07/utilities/caching/cachenone'
  md: 'https://shopify.dev/docs/api/hydrogen/2024-07/utilities/caching/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
  ```

Examples

### 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 LoaderFunctionArgs} from '@shopify/remix-oxygen';
  import {CacheNone} from '@shopify/hydrogen';

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

    return json(data);
  }
  ```

## Related

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

[- CacheShort](https://shopify.dev/docs/api/hydrogen/2024-07/utilities/cacheshort)

[- CacheLong](https://shopify.dev/docs/api/hydrogen/2024-07/utilities/cachelong)

[- CacheCustom](https://shopify.dev/docs/api/hydrogen/2024-07/utilities/cachecustom)
