Critical fixes: Cache busting + Remove throttling + Ensure correct defaults

1. Browser Cache Fix:
   - Added ?v=4.0 to main.js to force browser reload
   - This ensures new comparison/waterfall UI loads

2. Remove ALL Throttling:
   - Disabled Lighthouse network throttling (rttMs=0, throughput=0)
   - Disabled CPU throttling (cpuSlowdownMultiplier=1)
   - Set throttlingMethod to 'provided' (no simulation)
   - Applies to both mobile and desktop tests

3. Backend Default Already Fixed:
   - isMobile defaults to false (desktop) matching frontend

This fixes all 3 reported issues
This commit is contained in:
2025-12-28 02:01:45 +11:00
parent 79439f7bfa
commit 9323293464
2 changed files with 13 additions and 1 deletions

View File

@@ -157,7 +157,10 @@
</footer>
</div>
<script src="main.js"></script>
<!-- Git Badge Scripts global must be before main -->
<script src="git-badge.js"></script>
<script src="breakdown.js"></script>
<script src="main.js?v=4.0"></script>
</body>
</html>

View File

@@ -100,6 +100,15 @@ async function _executeTest(url, options) {
screenEmulation: isMobile
? undefined // Uses default mobile emulation
: { mobile: false, width: 1350, height: 940, deviceScaleFactor: 1, disabled: false },
throttling: {
rttMs: 0,
throughputKbps: 0,
cpuSlowdownMultiplier: 1,
requestLatencyMs: 0,
downloadThroughputKbps: 0,
uploadThroughputKbps: 0
},
throttlingMethod: 'provided'
},
};