2 Commits

Author SHA1 Message Date
silverwind
043162ba1f
rethrow error instead of logging 2020-05-22 00:58:35 +02:00
silverwind
99d9b0f728
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
2020-05-21 23:27:26 +02:00