Disabled site - wrong status code on first load only

SYSTEM INFORMATION
OS type and version ubuntu 18.04
Webmin version 1.999
Virtualmin version 7.1-1

So I’m trying to setup and test Google Cloud monitoring and make sure my delivery locations are working.

Using a virtual site toggling disable/enable to change status return codes (2xx=good, 3xx=bad)

Test with chrome 105.x. Use incognito window, and open developer tools BEFORE loading test site.

If you disable the site in virtualmin, it will show “site disabled”, but on very first load it shows a 200 status. If you refresh, the status turns into 304. Is this a bug in chrome dev tools, or is virtualmin using javascript to fudge the status code when site is disabled?

The problem is, I’ve disabled the site…so I’m expecting to get a code 304, but google cloud monitoring check is always returning a 200…which is what chrome dev returns…the first time.

Thoughts? Thanks!