Commit 9545b44
committed
refactor: add cache-control header in the polling response
This header should not be needed since the client already includes a
cache busting query parameter ("t"), but a misconfigured CDN could
ignore the query parameters and cache the server response.
Related: socketio/socket.io#48421 parent ff1c861 commit 9545b44
File tree
3 files changed
+21
-5
lines changed- lib
- transports-uws
- transports
- test
3 files changed
+21
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
423 | 423 | | |
424 | 424 | | |
425 | 425 | | |
| 426 | + | |
| 427 | + | |
426 | 428 | | |
427 | 429 | | |
428 | 430 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
392 | 392 | | |
393 | 393 | | |
394 | 394 | | |
| 395 | + | |
| 396 | + | |
395 | 397 | | |
396 | 398 | | |
397 | 399 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3443 | 3443 | | |
3444 | 3444 | | |
3445 | 3445 | | |
3446 | | - | |
| 3446 | + | |
3447 | 3447 | | |
3448 | 3448 | | |
3449 | 3449 | | |
3450 | | - | |
| 3450 | + | |
3451 | 3451 | | |
3452 | | - | |
3453 | 3452 | | |
3454 | 3453 | | |
3455 | 3454 | | |
| |||
3465 | 3464 | | |
3466 | 3465 | | |
3467 | 3466 | | |
3468 | | - | |
| 3467 | + | |
| 3468 | + | |
| 3469 | + | |
| 3470 | + | |
3469 | 3471 | | |
3470 | 3472 | | |
3471 | 3473 | | |
3472 | 3474 | | |
3473 | 3475 | | |
3474 | 3476 | | |
3475 | 3477 | | |
3476 | | - | |
| 3478 | + | |
| 3479 | + | |
| 3480 | + | |
| 3481 | + | |
| 3482 | + | |
| 3483 | + | |
| 3484 | + | |
| 3485 | + | |
| 3486 | + | |
| 3487 | + | |
| 3488 | + | |
3477 | 3489 | | |
3478 | 3490 | | |
3479 | 3491 | | |
| |||
0 commit comments