overleaf/services/web/frontend/js
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
..
directives Merge pull request #3949 from overleaf/msm-reenable-eslint-const-rule 2021-05-06 02:09:14 +00:00
features Merge pull request #4020 from overleaf/jpa-gracefully-access-mathjax 2021-05-18 02:07:53 +00:00
filters Merge pull request #3942 from overleaf/prettier-trailing-comma 2021-04-28 02:10:01 +00:00
ide [misc] merge pdf caching into main (#4033) 2021-05-18 02:07:57 +00:00
infrastructure Merge pull request #3994 from overleaf/ae-sentry-packages 2021-05-13 02:09:07 +00:00
main Merge pull request #3947 from overleaf/msm-reenable-eslint-rules 2021-05-14 02:09:45 +00:00
modules Merge pull request #3942 from overleaf/prettier-trailing-comma 2021-04-28 02:10:01 +00:00
services Merge pull request #3949 from overleaf/msm-reenable-eslint-const-rule 2021-05-06 02:09:14 +00:00
shared Merge pull request #4025 from overleaf/ae-timeout-upgrade 2021-05-15 02:10:09 +00:00
utils Merge pull request #3949 from overleaf/msm-reenable-eslint-const-rule 2021-05-06 02:09:14 +00:00
vendor/libs Replace vendor MathJax with NPM package, upgrade to 2.7.9 (#3702) 2021-03-05 03:04:57 +00:00
base.js Merge pull request #3942 from overleaf/prettier-trailing-comma 2021-04-28 02:10:01 +00:00
i18n.js Merge pull request #3942 from overleaf/prettier-trailing-comma 2021-04-28 02:10:01 +00:00
ide.js [misc] merge pdf caching into main (#4033) 2021-05-18 02:07:57 +00:00
libraries.js Improve CSS chunk importing (#3817) 2021-03-30 02:05:17 +00:00
main.js Merge pull request #3942 from overleaf/prettier-trailing-comma 2021-04-28 02:10:01 +00:00
serviceWorker.js [misc] merge pdf caching into main (#4033) 2021-05-18 02:07:57 +00:00