tracker: changes to resource fails tracking

This commit is contained in:
nick-delirium 2024-12-18 15:10:20 +01:00
parent 3b68bebf40
commit 694de75052
No known key found for this signature in database
GPG key ID: 93ABD695DF5FDBA0

View file

@ -121,7 +121,8 @@ export default function (app: App, opts: Partial<Options>): void {
if (shouldSkip) {
return
}
const failed = entry.responseEnd === 0 && entry.transferSize === 0
const failed = entry.responseEnd === 0
|| (entry.transferSize === 0 && entry.decodedBodySize === 0)
if (failed) {
app.send(
ResourceTiming(