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.
gitea/templates
silverwind 655def5141
Move serviceworker to workbox and fix SSE interference (#11538) (#11547)
* 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>
5 years ago
..
admin Fix form action template substitutions on admin pages (backport #11519) (#11531) 5 years ago
base Move serviceworker to workbox and fix SSE interference (#11538) (#11547) 5 years ago
custom Add footer extra links template (#9576) 5 years ago
explore Ensure search action button coalesced to adjacent input (#11385) 5 years ago
mail Style blockquote for default issue mail template (#10024) 5 years ago
org Add Organization Wide Labels (#10814) 5 years ago
pwa Move serviceworker to workbox and fix SSE interference (#11538) (#11547) 5 years ago
repo Fix comment box styling and cancelling (#11463) (#11464) (#11469) (#11467) 5 years ago
status Make error pages translatable (#11163) 5 years ago
swagger Fix repo-list private and total count bugs (#11500) (#11532) 5 years ago
user Fix repo-list private and total count bugs (#11500) (#11532) 5 years ago
home.tmpl Add Octicon SVG spritemap (#10107) 5 years ago
install.tmpl Change default charset for MySQL on install to utf8mb4 (#10989) 5 years ago