Browser caching tells visitors' browsers to store images, CSS and JavaScript so repeat visits load faster. The easiest way:
- On WordPress, install the LiteSpeed Cache plugin - its Browser Cache option (under Cache settings) sets the right expiry headers for you.
- For other sites, add cache-control rules to your
.htaccessfile in the document root, setting an expiry (for example one month) on static files like images and stylesheets.
After enabling, test with PageSpeed Insights or GTmetrix - the "leverage browser caching" or "efficient cache policy" warning should clear. Keep in mind that caching is for static assets; you may need to clear your browser or the LSCache after design changes so visitors see the latest version. Need help editing .htaccess? Open a ticket.