Open ConnorNelson opened 8 months ago
This is not a great idea. The Service Worker API is fraught with complications.
We can customize the 500 error message that nginx returns, which will help when CTFd is down or causing problems.
If the entire site is offline, it should just fail.
We can use the fancy Service Worker API to still serve HTML when the site is down, assuming the user has previously visited the site. This can at least allow us to statically say "Hey, check the Discord for updates!", or if we are really fancy, display status updates. The latter sounds like a stretch goal.