Commit 79bb848
Speak HTTP/1.1
http.server answers HTTP/1.0 unless told otherwise. That costs a fresh
connection per request, and leaves `Cache-Control: no-store` on weaker
footing than it should be — it is an HTTP/1.1 header, and this page is
edited between reloads constantly, which is exactly when a stale copy is
most confusing to look at.
Every response already carries an accurate Content-Length, which is what
1.1 needs to hold a connection open, so this is an unset switch rather
than a change.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent 488da1d commit 79bb848
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
278 | 286 | | |
279 | 287 | | |
280 | 288 | | |
| |||
0 commit comments