diff --git a/packages/core/src/network.js b/packages/core/src/network.js index cd7b22f3c..ccdfb059e 100644 --- a/packages/core/src/network.js +++ b/packages/core/src/network.js @@ -3,7 +3,7 @@ import logger from '@percy/logger'; import mime from 'mime-types'; import { DefaultMap, createResource, hostnameMatches, normalizeURL, waitFor, decodeAndEncodeURLWithLogging } from './utils.js'; -const MAX_RESOURCE_SIZE = 25 * (1024 ** 2); // 25MB +const MAX_RESOURCE_SIZE = 25 * (1024 ** 2) * 0.63; // 25MB, 0.63 factor for accounting for base64 encoding const ALLOWED_STATUSES = [200, 201, 301, 302, 304, 307, 308]; const ALLOWED_RESOURCES = ['Document', 'Stylesheet', 'Image', 'Media', 'Font', 'Other']; const ABORTED_MESSAGE = 'Request was aborted by browser';