0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-19 16:31:41 +01:00
gitea/modules
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
..
analyze
auth Refactor Cron and merge dashboard tasks (#10745) 2020-05-16 19:31:38 -04:00
avatar
base
cache
charset
context api.Context.NotFound(...) should tolerate nil (#11288) 2020-05-05 21:52:13 +03:00
convert API PullReviewComment HTMLPullURL should return the HTMLURL (#11501) 2020-05-20 22:41:30 -04:00
cron Refactor Cron and merge dashboard tasks (#10745) 2020-05-16 19:31:38 -04:00
emoji Support unicode emojis and remove emojify.js (#11032) 2020-04-28 15:05:39 -03:00
eventsource Add EventSource support (#11235) 2020-05-07 22:49:00 +01:00
generate
git Add push commits history comment on PR time-line (#11167) 2020-05-20 09:47:24 -03:00
gitgraph
graceful Handle panics that percolate up to the graceful module (#11291) 2020-05-14 20:06:00 -04:00
highlight
httplib
indexer Log the indexer path on failure (#11172) 2020-04-22 16:16:58 -04:00
lfs Support Range header end in lfs (#11314) 2020-05-11 11:37:59 +03:00
log
markup Prevent 500 with badly formed task list (#11328) 2020-05-11 00:14:49 +01:00
metrics
migrations Refactor Cron and merge dashboard tasks (#10745) 2020-05-16 19:31:38 -04:00
notification Add push commits history comment on PR time-line (#11167) 2020-05-20 09:47:24 -03:00
options
password
pprof
private
process
public Send 404 immediately for known public requests (#11117) 2020-04-18 22:01:06 +01:00
queue Prevent timer leaks in Workerpool and others (#11333) 2020-05-08 16:46:05 +01:00
recaptcha
references
repofiles Revert "Avoid 0 new commits messages to be send (#11082)" (#11397) 2020-05-13 10:50:56 +03:00
repository Refactor Cron and merge dashboard tasks (#10745) 2020-05-16 19:31:38 -04:00
secret
session
setting TrimSpace when reading InternalToken from a file (#11502) 2020-05-20 19:16:06 +03:00
ssh
structs API: Add pull review endpoints (#11224) 2020-05-02 03:20:51 +03:00
sync
task
templates Move serviceworker to workbox and fix SSE interference (#11538) 2020-05-21 21:45:34 -04:00
test
timeutil
upload
user
util Prevent timer leaks in Workerpool and others (#11333) 2020-05-08 16:46:05 +01:00
validation
webhook Handle panics that percolate up to the graceful module (#11291) 2020-05-14 20:06:00 -04:00