···11+---
22+'@urql/exchange-persisted': major
33+'@urql/core': major
44+---
55+66+By default leverage GET for queries where the query-string + variables comes down to less than 2048 characters.
77+When upgrading it's important to see whether your server supports `GET`, if it doesn't ideally adding support for it
88+or alternatively setting `preferGetMethod` in the `createClient` method as well as `preferGetForPersistedQueries` for
99+the persisted exchange to `false`.
+3-2
exchanges/persisted/src/persistedExchange.ts
···4444 * GET requests are frequently used to make GraphQL requests more
4545 * cacheable on CDNs.
4646 *
4747- * @defaultValue `undefined` - disabled
4747+ * @defaultValue `within-url-limit` - Use GET requests for persisted queries within the URL limit.
4848 */
4949 preferGetForPersistedQueries?: OperationContext['preferGetMethod'];
5050 /** Enforces non-automatic persisted queries by ignoring APQ errors.
···137137 ({ forward }) => {
138138 if (!options) options = {};
139139140140- const preferGetForPersistedQueries = options.preferGetForPersistedQueries;
140140+ const preferGetForPersistedQueries =
141141+ options.preferGetForPersistedQueries || 'within-url-limit';
141142 const enforcePersistedQueries = !!options.enforcePersistedQueries;
142143 const hashFn = options.generateHash || hash;
143144 const enableForMutation = !!options.enableForMutation;