I have been debugging my Magento 2 build and I have found that when cache is enabled I see intermittent JS loading errors. If I disable the FPC cache the errors stop and the page works correctly (consistently).
No code changes are implemented, just a simple page reload.
Good page load:
Bad page load:
The errors happen approx every 3-4 page loads. Then goes away again for the next couple of page loads but then reappears.
If I disable FPC cache I do not see any errors ever (tested with approx 50 page reloads).
I have of course cleared cache, deleted pub/static/* deployed static content etc
Anyone have any ideas?
Thanks