Open pdpinch opened 2 years ago
I was reading a bit about this today. My understanding is that currently users do cache our resources, but they always check with the server before using the cache. If the server responds 304 ("Not modified"), then the cached resource is used. Otherwise a new one is fetched.
Our JS/CSS assetts, at least, include a hash, so we could set Cache-Control: Max-age
Our images (like ocw logo) are not hashed, but probably should be, then they can skip to memory cache right away, too
In the lighthouse report at https://foo-software-lighthouse-reports.s3.amazonaws.com/report-1649708748467.html the tool notes that we aren't setting cache headers for static assets. Since so many of the static assets are used across the site, we should encourage browsers to cache them.