Why we set a `Cache-Control: Max-Age` of 1 year
24 April 2019
It’s standard practice to set a Cache-Control: max-age=31536000Â on assets which are expected not to change, such as images. This header instructs the browser to cache the asset for 31536000 seconds, which is one year. Which raises two questions for me: Why a year? Why not ten years, or six months? Do we actually expect browsers… [Read More]