Skip to content

Instantly share code, notes, and snippets.

@HeahDude
Last active July 10, 2018 11:24
Show Gist options
  • Save HeahDude/1267f56612ba920bf030101451e722bb to your computer and use it in GitHub Desktop.
Save HeahDude/1267f56612ba920bf030101451e722bb to your computer and use it in GitHub Desktop.
user: heah
questions:
- question: "What keys can be passed to `Response::setCache($array)`"
answers:
- OK etag
- OK last_modified
- OK public
- OK private
- OK maxage
- KO smaxage
- OK s_maxage
- KO expires
- OK immutable
component: HTTP
extra_link: https://github.com/symfony/symfony/blob/4.0/src/Symfony/Component/HttpFoundation/Response.php#L922
- question: "Which status codes allow Symfony to consider a response cacheable ?"
answers:
- OK 200
- KO 201
- KO 202
- OK 203
- OK 300
- OK 301
- OK 302
- KO 304
- KO 403
- OK 404
- OK 410
component: HTTP
extra_link: https://github.com/symfony/symfony/blob/4.0/src/Symfony/Component/HttpFoundation/Response.php#L513
- question: "Is it possible to invalid an `Expires` header?"
answers:
- OK false
- KO true
component: HTTP
extra_link: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Expires
- question: "Is it possible to invalid a max-age cache control directive?"
answers:
- KO false
- OK true
component: HTTP
extra_link: https://github.com/symfony/symfony/blob/4.0/src/Symfony/Component/HttpFoundation/Response.php#L678
- question: "Who can handle ESI fragments requests"
answers:
- KO brwoser
- KO proxy
- OK reverse proxy
component: HTTP
extra_link: ~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment