We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c3490c8 commit c0cafd3Copy full SHA for c0cafd3
packages/core/src/network.js
@@ -3,7 +3,7 @@ import logger from '@percy/logger';
3
import mime from 'mime-types';
4
import { DefaultMap, createResource, hostnameMatches, normalizeURL, waitFor, decodeAndEncodeURLWithLogging } from './utils.js';
5
6
-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
7
const ALLOWED_STATUSES = [200, 201, 301, 302, 304, 307, 308];
8
const ALLOWED_RESOURCES = ['Document', 'Stylesheet', 'Image', 'Media', 'Font', 'Other'];
9
const ABORTED_MESSAGE = 'Request was aborted by browser';
0 commit comments