Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move serviceworker to workbox and fix SSE interference (#11538) #11547

Merged
merged 2 commits into from
May 22, 2020

Commits on May 22, 2020

  1. Move serviceworker to workbox and fix SSE interference (go-gitea#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: go-gitea#11092
    Fixes: go-gitea#7372
    
    * rethrow error instead of logging
    
    * await .register
    
    * Revert "rethrow error instead of logging"
    
    This reverts commit 043162b.
    
    * improve comment
    
    * remove JSRenderer
    
    * add version-based cache invalidation
    
    * refactor
    
    * more refactor
    
    * remove comment
    
    * rename item to fit cache name
    
    Co-authored-by: guillep2k <[email protected]>
    silverwind and guillep2k committed May 22, 2020
    Configuration menu
    Copy the full SHA
    c67b523 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3839734 View commit details
    Browse the repository at this point in the history