Merge pull request #8883 from overleaf/jpa-optimize-pdf-caching

[web] optimize pdf caching

GitOrigin-RevId: 85f8b8425ca0052b0d5229cec651e1d5080f1da4
This commit is contained in:
Jakob Ackermann
2022-08-01 12:31:05 +01:00
committed by Copybot
parent f1487714b4
commit ed66b43979
5 changed files with 441 additions and 70 deletions
@@ -998,6 +998,39 @@ const ProjectController = {
cb()
})
},
pdfCachingPrefetchingAssignment(cb) {
SplitTestHandler.getAssignment(
req,
res,
'pdf-caching-prefetching',
() => {
// We'll pick up the assignment from the res.locals assignment.
cb()
}
)
},
pdfCachingPrefetchLargeAssignment(cb) {
SplitTestHandler.getAssignment(
req,
res,
'pdf-caching-prefetch-large',
() => {
// We'll pick up the assignment from the res.locals assignment.
cb()
}
)
},
pdfCachingCachedUrlLookupAssignment(cb) {
SplitTestHandler.getAssignment(
req,
res,
'pdf-caching-cached-url-lookup',
() => {
// We'll pick up the assignment from the res.locals assignment.
cb()
}
)
},
},
(
err,