The fallbackToIndex middleware should throw 404's if it's a file it's looking for and it's non-existant.
The fact that it fallbacks to index even on 404's for files (that have an extension) makes it load the index again, which bootstraps angular, which loads that same file that should be a 404 but loads the index again, which bootstraps angular, which loads that same file that….and on and on and on.
The
fallbackToIndex
middleware should throw 404's if it's a file it's looking for and it's non-existant.The fact that it fallbacks to index even on 404's for files (that have an extension) makes it load the index again, which bootstraps angular, which loads that same file that should be a 404 but loads the index again, which bootstraps angular, which loads that same file that….and on and on and on.
So yeah, this has to be fixed.