The expires Http header tells the browser that after it has downloaded the required file, it does not need to re-download the file for a certain period of time.
Using the expires header allows you to reduce the load on the server, as well as increase the speed of loading pages on your site. This also solves the "Serve static assets with an efficient cache policy" problem in the page load speed check service PageSpeed Insights (apart from third-party files, for example, this will not solve the problem with Google Analytics scripts).
You can configure Expires headers on a WordPress-run site by adding the following directives to the .htaccess file:
Updated: 19.04.2020Did this article help you? Rate it!
Support on Patreon https://www.patreon.com/processby