Merge pull request #4194 from overleaf/jpa-lower-request-limit

[misc] serviceWorker: lower the limit of sub requests from 8 to 4

GitOrigin-RevId: 0b78e3a9f7e055eeb16a59c219090dd9c6a1153a
This commit is contained in:
Jakob Ackermann 2021-06-14 10:12:02 +02:00 committed by Copybot
parent 25d3231ce7
commit a41f0afad2

View file

@ -9,7 +9,7 @@ const CLEAR_CACHE_REQUEST_MATCHER = /^\/project\/[0-9a-f]{24}\/output$/
const COMPILE_REQUEST_MATCHER = /^\/project\/[0-9a-f]{24}\/compile$/
const PDF_REQUEST_MATCHER = /^\/project\/[0-9a-f]{24}\/.*\/output.pdf$/
const PDF_JS_CHUNK_SIZE = 128 * 1024
const MAX_SUBREQUEST_COUNT = 8
const MAX_SUBREQUEST_COUNT = 4
const MAX_SUBREQUEST_BYTES = 4 * PDF_JS_CHUNK_SIZE
const INCREMENTAL_CACHE_SIZE = 1000