mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 14:13:43 +01:00
Merge pull request #4094 from overleaf/jpa-tag-pdf-caching-traffic
[frontend] PdfController: tag traffic that uses the pdf caching logic GitOrigin-RevId: ab0d847ff1fe31131428c782ce95b3a5b3dff4fd
This commit is contained in:
@@ -400,8 +400,13 @@ App.controller(
|
||||
)
|
||||
|
||||
if (window.location.search.includes('verify_chunks=true')) {
|
||||
// Instruct the serviceWorker to verify composed ranges.
|
||||
qs.verify_chunks = 'true'
|
||||
}
|
||||
if (getMeta('ol-enablePdfCaching')) {
|
||||
// Tag traffic that uses the pdf caching logic.
|
||||
qs.enable_pdf_caching = 'true'
|
||||
}
|
||||
|
||||
// convert the qs hash into a query string and append it
|
||||
$scope.pdf.url += createQueryString(qs)
|
||||
|
||||
Reference in New Issue
Block a user