Webndsday
June 28, 2023
1 | GET /path |
2 | Accept-Encoding: text/html |
1 | HTTP/1.1 200 OK |
2 | Content-Type: text/html |
3 |
4 | <html>...</html> |
twitter.com/stevelosh/status/372740571749572610
HTTP 1.1, RFC 2616, Sections 13.2 and 13.3
1 | Cache-Control: s-maxage=3600, max-age=900 |
2 | Expires: Thu, 15 May 2014 08:00:00 GMT |
ETag: 82901821233
If-None-Match: 82901821233
304 Not Modified
1 | Cache-Control: s-maxage=0, private, no-store |
Response content depends on request headers
Requests
1 | GET /resource |
2 | Accept: application/json |
1 | GET /resource |
2 | Accept: text/xml |
Response
1 | Vary: Accept |
1 | < link rel = "stylesheet" href = "/css/style.css?v1" type = "text/css" /> |
2 | ... |
3 | < script src = "/js/scripts.js?v1" ></ script > |
1 | Surrogate-Control: max-age=900, no-cache |
1 | Surrogate-Control: no-store |
Check documentation of your surrogate!