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

Open
#15,479 0 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@msynk is already working on this.

Since Nov 25, 2026.

Assessment

This issue has not been assessed yet.

Description

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.

Dominant language
C#
Stars
1.4k
Forks
264
Avg merge
7h 38m
Merged PRs (30d)
544

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from bitfoundation/bitplatform

All issues in bitfoundation/bitplatform

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.