From 5cbb630c4780d20bc2747b0b62035a3702e87a3b Mon Sep 17 00:00:00 2001 From: Kevin Jalbert Date: Tue, 3 Jul 2018 20:32:46 -0400 Subject: [PATCH] Add HTTP Caching to React Application --- react-graphql/src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react-graphql/src/index.js b/react-graphql/src/index.js index 6ed511e..57ccca1 100644 --- a/react-graphql/src/index.js +++ b/react-graphql/src/index.js @@ -11,7 +11,7 @@ import App from './components/App'; import './index.css'; const client = new ApolloClient({ - link: createPersistedQueryLink().concat( + link: createPersistedQueryLink({ useGETForHashedQueries: true }).concat( createHttpLink({ uri: 'http://localhost:5000/graphql' }) ), cache: new InMemoryCache(),