Service Worker test

This page contains a form. The form has a method of POST and an action of redirect.php …a file that contains just one line of PHP:

Header('Location: /swtest/success.php');

The Service Worker correctly ignores the initial POST submission from this page (see line 116 of the Service Worker script). But then, when redirect.php forwards the user to success.php, the Service Worker intercepts that request and instead of fulfilling it, shows /offline instead (either line 121 or 142 of the Service Worker script).

Expected behaviour

Submitting the form results in the user being redirected to /swtest/success.php

Observed behaviour

Submitting the form results in the user seeing /offline

Here’s the form