Skip to main content

InMemoryCache

Caution

This utility should only be used when deploying Hydrogen to a Node.js environment. It should not be used when deploying Hydrogen to Oxygen.

If you are deploying Hydrogen to a Node.js environment, you can use this limited implementation of an in-memory cache. It only supports the cache-control header. It does NOT support age or expires headers.

Learn more about data fetching in Hydrogen.



Was this page helpful?