Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • erp5 erp5
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Merge requests 149
    • Merge requests 149
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • nexedinexedi
  • erp5erp5
  • Merge requests
  • !2285

Draft: erp5_web_renderjs_ui: make precached list stable so that service worker won't be updated randomly

  • Review changes

  • Download
  • Patches
  • Plain diff
Open Xiaowu Zhang requested to merge xiaowu.zhang/erp5:fix/service_worker_update into master May 07, 2026
  • Overview 3
  • Commits 1
  • Pipelines 0
  • Changes 1

I noticed that my service worker for ERP5JS is updated almost every day.

image

However, the cache date does not change:

CACHE_NAME = prefix + 'Mon, 16 Mar 2026 05:33:51 +0000',

After further testing, I found that when the order of elements in the precache list changee

causing the content of gadget_erp5_serviceworker.js to change

the service worker is updated in this case

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: fix/service_worker_update
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7