mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #31] [MERGED] Adjust PWA stuff to detect stale versions #4404
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#4404
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/31
Author: @amauragis
Created: 3/27/2026
Status: ✅ Merged
Merged: 3/29/2026
Merged by: @SpicyMarinara
Base:
main← Head:pwa-trouble📝 Commits (3)
2ccca56feat: implement service worker registration and version recovery mechanism to stop stale versions on ios pwac951df6Merge branch 'SpicyMarinara:main' into pwa-troublea820b81Merge branch 'main' into pwa-trouble📊 Changes
7 files changed (+140 additions, -4 deletions)
View changed files
📝
packages/client/package.json(+1 -0)📝
packages/client/src/App.tsx(+86 -0)📝
packages/client/src/main.tsx(+17 -0)📝
packages/client/tsconfig.json(+1 -0)📝
packages/client/vite.config.ts(+3 -3)📝
packages/server/src/app.ts(+29 -1)📝
pnpm-lock.yaml(+3 -0)📄 Description
Client-side version management and service worker enhancements:
App.tsxthat polls the server for the current version and, if a mismatch is detected, unregisters service workers, clears caches, and reloads the page with a version parameter to ensure users are always on the latest version. [1] [2]workbox-windowand improved service worker registration usingvirtual:pwa-register, enabling immediate updates and periodic service worker refreshes every minute. [1] [2] [3]Service worker and PWA configuration:
Server-side cache control improvements:
index.htmland manifest/service worker files, and enables long-term immutable caching for hashed asset files, reducing the risk of clients loading outdated files. Also applies no-cache headers to SPA fallbacks. [1] [2]Dependency updates:
workbox-windowto dependencies and updated the lockfile. [1] [2]🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.