Add Site Health test to verify that static assets are served with far-future expires #323
Labels
Needs Dev
Anything that requires development (e.g. a pull request)
[Plugin] Performance Lab
Issue relates to work in the Performance Lab Plugin only
[Type] Enhancement
A suggestion for improvement of an existing feature
Feature Description
In order to leverage the browser cache effectively, page assets like images, scripts, and stylesheets should all be served with far-future expires. A Site Health test could be added which checks for the necessary asset response headers (i.e.
Cache-Control
and/orExpires
) and warns when they are not present. The call to action would be to fix the web server configuration, potentially prompting the user to contact their host.The text was updated successfully, but these errors were encountered: