overleaf/services/web/frontend/js/ide
Jakob Ackermann 7db7cd4a49 [misc] merge pdf caching into main (#4033)
* [frontend] WIP: pdf caching using service worker -- squashed

Ref: 920fbaa00b31530f7c457a2d93bad5e553798057
Co-Authored-By: Brian Gough <brian.gough@overleaf.com>
Co-Authored-By: Eric Mc Sween <eric.mcsween@overleaf.com>

* [misc] add contentId into the URL for protecting PDF stream contents

* [misc] gracefully handle missing ranges in serviceWorker

* [misc] support PDF stream caching for anonymous users

* [misc] polish header names and add URL to error message when fetch fails

* [misc] polish event handler registration

* [misc] limit serviceWorker scope to /project/ -- trailing slash

This will block the service worker from intercepting requests on the
 project dashboard.

* [misc] add per-request feature flag for enabling PDF stream caching

* [misc] expose compile stats and timings to the frontend

* [misc] serviceWorker: support clsiServerId and compileGroup url params

* [misc] serviceWorker: polish header maps

* [misc] serviceWorker: drop TODO for p-limit -- the browser has a queue

* [misc] serviceWorker: drop verbose log message on every fetch

* [misc] cut down size of diff in backend code

* [misc] add test case for forwarding of pdf caching and metrics details

* [misc] serviceWorker: drop all the log lines

* [misc] serviceWorker: add boundary guards to the compile request regex

Co-authored-by: Brian Gough <brian.gough@overleaf.com>
Co-authored-by: Eric Mc Sween <eric.mcsween@overleaf.com>
GitOrigin-RevId: 4b291b4a4f2866cf07bccf8ec9068f33bbfdc916
2021-05-18 02:07:57 +00:00
..
binary-files Merge pull request #3960 from overleaf/cmg-binary-file 2021-04-29 02:09:38 +00:00
chat Merge pull request #3944 from overleaf/revert-3943-revert-3735-as-chat-reducer 2021-04-24 02:10:01 +00:00
clone Merge pull request #3942 from overleaf/prettier-trailing-comma 2021-04-28 02:10:01 +00:00
cobranding Merge pull request #3942 from overleaf/prettier-trailing-comma 2021-04-28 02:10:01 +00:00
colors Merge pull request #3949 from overleaf/msm-reenable-eslint-const-rule 2021-05-06 02:09:14 +00:00
connection Merge pull request #3949 from overleaf/msm-reenable-eslint-const-rule 2021-05-06 02:09:14 +00:00
directives Merge pull request #3949 from overleaf/msm-reenable-eslint-const-rule 2021-05-06 02:09:14 +00:00
editor Merge pull request #3947 from overleaf/msm-reenable-eslint-rules 2021-05-14 02:09:45 +00:00
file-tree Merge pull request #3949 from overleaf/msm-reenable-eslint-const-rule 2021-05-06 02:09:14 +00:00
files/services Merge pull request #3949 from overleaf/msm-reenable-eslint-const-rule 2021-05-06 02:09:14 +00:00
graphics/services Merge pull request #3942 from overleaf/prettier-trailing-comma 2021-04-28 02:10:01 +00:00
history Merge pull request #3947 from overleaf/msm-reenable-eslint-rules 2021-05-14 02:09:45 +00:00
hotkeys Merge pull request #3495 from overleaf/ae-prettier-2 2021-04-15 02:05:22 +00:00
human-readable-logs Merge pull request #3949 from overleaf/msm-reenable-eslint-const-rule 2021-05-06 02:09:14 +00:00
metadata Merge pull request #3949 from overleaf/msm-reenable-eslint-const-rule 2021-05-06 02:09:14 +00:00
online-users Merge pull request #3949 from overleaf/msm-reenable-eslint-const-rule 2021-05-06 02:09:14 +00:00
pdf [misc] merge pdf caching into main (#4033) 2021-05-18 02:07:57 +00:00
pdfng/directives [misc] merge pdf caching into main (#4033) 2021-05-18 02:07:57 +00:00
permissions Merge pull request #3942 from overleaf/prettier-trailing-comma 2021-04-28 02:10:01 +00:00
preamble/services Merge pull request #3942 from overleaf/prettier-trailing-comma 2021-04-28 02:10:01 +00:00
references Merge pull request #3942 from overleaf/prettier-trailing-comma 2021-04-28 02:10:01 +00:00
review-panel Merge pull request #3949 from overleaf/msm-reenable-eslint-const-rule 2021-05-06 02:09:14 +00:00
services Merge pull request #3949 from overleaf/msm-reenable-eslint-const-rule 2021-05-06 02:09:14 +00:00
settings Merge pull request #3949 from overleaf/msm-reenable-eslint-const-rule 2021-05-06 02:09:14 +00:00
share Merge pull request #3949 from overleaf/msm-reenable-eslint-const-rule 2021-05-06 02:09:14 +00:00
wordcount Merge pull request #3445 from overleaf/ae-wordcount-modal 2021-01-07 03:04:59 +00:00
LoadingManager.js Merge pull request #3134 from overleaf/as-react-i18n 2020-09-05 02:05:04 +00:00
SafariScrollPatcher.js Merge pull request #3928 from overleaf/ae-safari-error 2021-04-22 02:09:37 +00:00