Compresses responses in the preview server

The baseline ran on vite preview, which compresses, so measurements could not
be compared without this. Also records that the real servers need compression.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-31 18:30:30 +01:00
co-authored by Claude Opus 5.5
parent fe1ec5db3d
commit 0c5d8b8f40
6 changed files with 220 additions and 15 deletions
+12
View File
@@ -215,3 +215,15 @@
**Context**: Code Generation Part 2, unit 1. Permission ends when this feature ends.
---
## Code Generation - Lighthouse Comparison Finding
**Timestamp**: 2026-10-31T14:15:01Z
**User Input**: "(none: finding by the main session)"
**AI Response**: "Step 24 measured /over-mij at 0.77 with LCP 6.2 s against the baseline 0.86 and 3.5 s. Root cause in the Lighthouse reports: the new preview server does not compress, while vite preview at the baseline did (script transfer 667 kB versus 202 kB; document 94 kB uncompressed, about 16 kB gzipped). FCP was already better at 1.66 s versus 2.60 s. Extended BR-SRV-08 with gzip. Separately, curl showed test.andreaslop.nl returns HTML and JavaScript without Content-Encoding and serverConfig.ts has no compression rules, so FR-PR-23 was added to unit 3. Lighthouse also reported React error #418 on /404.html; its root cause goes to Steps 26 and 27."
**Context**: Code Generation unit 1, after Step 24.
---