Search code examples
http-headerscache-control

What's the difference Expires and Cache-control:max-age?


Could you tell me the difference of Expires and Cache-control:max-age?


Solution

  • Expires was defined in the HTTP/1.0 specifications, and Cache-Control in the HTTP/1.1 specifications.

    I would suggest defining both so you cater to both, the older clients that only understand HTTP/1.0, and the newer ones.