0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-25 04:35:00 +01:00
gitea/web_src/js
silverwind 88fe7b5a72
Move serviceworker to workbox and fix SSE interference (#11538)
* Move serviceworker to workbox and fix SSE interference

Instead of statically hardcoding every frontend asset, this uses a
type-based approach to cache all js,css and manifest.json requests.

This also fixes the issue that the service worker was interfering with
EventSource because it was unconditionally handling all requests which
this new implementation doesn't.

Fixes: https://github.com/go-gitea/gitea/issues/11092
Fixes: https://github.com/go-gitea/gitea/issues/7372

* rethrow error instead of logging

* await .register

* Revert "rethrow error instead of logging"

This reverts commit 043162ba1f.

* improve comment

* remove JSRenderer

* add version-based cache invalidation

* refactor

* more refactor

* remove comment

* rename item to fit cache name

Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
2020-05-21 21:45:34 -04:00
..
components Insert ui divider directly in templates instead of from inside heatmap vue component (#11508) 2020-05-19 21:24:14 +01:00
features Move serviceworker to workbox and fix SSE interference (#11538) 2020-05-21 21:45:34 -04:00
standalone Reorganize frontend files and tooling (#10168) 2020-02-07 18:09:30 +01:00
vendor Misc JS linting and naming tweaks (#10652) 2020-03-11 21:34:54 +02:00
index.js Move serviceworker to workbox and fix SSE interference (#11538) 2020-05-21 21:45:34 -04:00
jquery.js Upgrade jQuery to 3.5.0, remove jQuery-Migrate, fix deprecations (#11055) 2020-04-18 18:46:29 -04:00
publicpath.js Fix webpack chunk loading with STATIC_URL_PREFIX (#11526) 2020-05-20 23:33:31 +01:00
serviceworker.js Move serviceworker to workbox and fix SSE interference (#11538) 2020-05-21 21:45:34 -04:00
utils.js Move tributejs to npm/webpack (#11497) 2020-05-20 22:00:43 -04:00