cdumez@apple.com | 55c830f | 2019-09-06 04:51:31 +0000 | [diff] [blame] | 1 | Test that Vary: Cookie in response is handled by caches. |
| 2 | |
| 3 | On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". |
| 4 | |
| 5 | |
| 6 | Testing disk cache |
| 7 | Testing memory cache in private browsing |
| 8 | Setting cookie and loading |
| 9 | response headers: {"Cache-control":"max-age=100"} |
| 10 | response source: Network |
| 11 | |
| 12 | response headers: {"Vary":"Cookie","Cache-control":"max-age=100"} |
| 13 | response source: Network |
| 14 | |
| 15 | Loading again |
| 16 | response headers: {"Cache-control":"max-age=100"} |
| 17 | response source: Memory cache |
| 18 | |
| 19 | response headers: {"Vary":"Cookie","Cache-control":"max-age=100"} |
| 20 | response source: Memory cache |
| 21 | |
| 22 | Changing cookie and loading |
| 23 | response headers: {"Cache-control":"max-age=100"} |
| 24 | response source: Memory cache |
| 25 | |
| 26 | response headers: {"Vary":"Cookie","Cache-control":"max-age=100"} |
| 27 | response source: Network |
| 28 | |
| 29 | Loading again |
| 30 | response headers: {"Cache-control":"max-age=100"} |
| 31 | response source: Memory cache |
| 32 | |
| 33 | response headers: {"Vary":"Cookie","Cache-control":"max-age=100"} |
| 34 | response source: Memory cache |
| 35 | |
| 36 | PASS successfullyParsed is true |
| 37 | |
| 38 | TEST COMPLETE |
| 39 | |