You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/routers
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 043162ba1f18b98a4bf9635959fd28d16e839fc5.

* 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>
4 years ago
..
admin Refactor Cron and merge dashboard tasks (#10745) 4 years ago
api/v1 Fix repo-list private and total count bugs (#11500) 4 years ago
dev Display ui time with customize time location (#7792) 5 years ago
events Add EventSource support (#11235) 4 years ago
org Add Organization Wide Labels (#10814) 4 years ago
private Protect default branch against deletion (#11115) 4 years ago
repo Prevent transferring repos to invisible orgs (#11517) 4 years ago
routes Move serviceworker to workbox and fix SSE interference (#11538) 4 years ago
user Whenever the ctx.Session is updated, release it to save it before sending the redirect (#11456) 4 years ago
utils Handle push rejection message in Merge & Web Editor (#10373) 4 years ago
home.go Ensure public repositories in private organizations are visible and fix admin organizations list (#11465) 4 years ago
init.go Refactor Cron and merge dashboard tasks (#10745) 4 years ago
install.go Whenever the ctx.Session is updated, release it to save it before sending the redirect (#11456) 4 years ago
metrics.go Use gitea forked macaron (#7933) 5 years ago
swagger_json.go Add gitea-vet (#10948) 4 years ago