profiler: min-length content compare on size/record mismatch

When a declared fileSize/recordLen/numRecords attribute mismatches, compare
file contents only over the overlapping (shorter) portion, so a length
difference alone doesn't fail the content check when the common bytes match.
When sizes match, contents are compared fully as before.

Add profilerMatchMin helper + tests. SW cache v43.
This commit is contained in:
2026-09-09 22:49:00 +03:00
parent 5c279147c1
commit dd18a24062
3 changed files with 36 additions and 12 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
const CACHE = 'otaman-v42';
const CACHE = 'otaman-v43';
const URLS = [
'index.html',
'help.html',