• Docs
  • Plugins
  • Caching in HTTP

Caching in HTTP

Usually server environments don't have browser's HTTP caching logic. This plugin brings HTTP Caching to your GraphQL Mesh gateway.

💡

The defined cache storage will be used for this plugin. By default, GraphQL Mesh uses LocalForage as a cache storage. For example, you need to follow this section to configure Redis as your cache storage. You can find other options under the same category.

Getting Started

yarn add @graphql-mesh/plugin-http-cache

Then add the plugin to your configuration;

.meshrc.yaml
plugins:
  httpCache: {}
Last updated on December 6, 2022