# Automatic Persisted Queries and CDN caching with Apollo Server 2.0

DevFeed: [Automatic Persisted Queries and CDN caching with Apollo Server 2.0](<https://devfeed.tech/articles/automatic-persisted-queries-and-cdn-caching-with-apollo-server-2-0-23231.md>)

Original publisher: [Read original article](<https://www.apollographql.com/blog/automatic-persisted-queries-and-cdn-caching-with-apollo-server-2-0>)

Author: Prosper Otemuyiwa

Published: 2018-06-28T17:50:01Z

Content type: tutorial

Language: en

Sources: [Apollo Blog](<https://devfeed.tech/sources/apollo-blog.md>)

Topics: [apollo-server](<https://devfeed.tech/topics/apollo-server.md>), [GraphQL](<https://devfeed.tech/topics/graphql.md>), [Caching](<https://devfeed.tech/topics/caching.md>), [Latency](<https://devfeed.tech/topics/latency.md>), [API](<https://devfeed.tech/topics/api.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [apollo](<https://devfeed.tech/tags/apollo.md>), [backend](<https://devfeed.tech/tags/backend.md>), [caching](<https://devfeed.tech/tags/caching.md>), [cdn](<https://devfeed.tech/tags/cdn.md>), [graphql](<https://devfeed.tech/tags/graphql.md>), [network](<https://devfeed.tech/tags/network.md>), [performance](<https://devfeed.tech/tags/performance.md>)

## AI overview

This tutorial explains how Automatic Persisted Queries and CDN caching in Apollo Server 2.0 reduce GraphQL request sizes and improve network performance. It describes sending a 64-byte query hash first and sending the full query only when the server has not seen it before.

## Source excerpt

A common challenge that developers experience as they build products is how quickly their apps grow in complexity. For GraphQL services, your request sizes and query strings fatten over time, which in turn leads to extra weight transferred over the network. We solved this challenge by shipping Automatic Persisted Queries -- a tool to that improves GraphQL network performance by reducing request size.