Bswup's AlwaysPrerender mode doesn't open the cached app when the server is down

Aperta
#15,479 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@msynk ci sta già lavorando.

Dal 25/11/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

area / bswup

In AlwaysPrerender mode (forcePrerender), Bswup sends every navigation to the network and keeps no copy of the default document. So when the server doesn't answer, an installed app doesn't open at all, although its assets are all in the cache. NoPrerender opens the cached app in the same situation.

Reproduced on 2026-11-25 on two bit Boilerplate demos, once the worker controlled the page, by failing only the document request:

The server refuses the connection A proxy in front of it answers 502
sales.bitfabric.co (AlwaysPrerender) Chrome's "This site can't be reached" The proxy's 502 page
adminpanel.bitfabric.co (NoPrerender) The app, from the cache The app, from the cache

Expected: under forcePrerender, the network first, and when that fails or answers 502, 503, 504 (or Cloudflare's 52x and 530), the cached non-prerendered default document, as NoPrerender serves it. That needs the default document cached in this mode too.

Lingua principale
C#
Stelle
1.4k
Fork
264
Merge medio
7h 38m
PR unite (30g)
544

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di bitfoundation/bitplatform

Tutte le issue di bitfoundation/bitplatform

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.