1
1
mirror of https://github.com/go-gitea/gitea synced 2024-07-05 09:35:48 +00:00
gitea/templates/base
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>
2020-05-22 12:46:39 -03:00
..
alert.tmpl Security: fix XSS attack on alert (#973) 2017-02-19 19:18:06 +08:00
delete_modal_actions.tmpl Indent all templates with tabs 2015-12-08 00:57:46 +01:00
footer_content.tmpl Add translatable Powered by Gitea text in footer (#9600) 2020-01-04 20:27:19 +00:00
footer.tmpl Support unicode emojis and remove emojify.js (#11032) 2020-04-28 15:05:39 -03:00
head_navbar.tmpl Use AJAX for notifications table (#10961) 2020-04-24 00:57:38 -03:00
head.tmpl Move serviceworker to workbox and fix SSE interference (#11538) (#11547) 2020-05-22 12:46:39 -03:00
paginate.tmpl Unifies pagination template usage (#6531) (#6533) 2019-04-20 00:15:19 -04:00