GroundControlCreative / hubss

1 stars 1 forks source link

Leverage browser caching (Site Speed) #17

Open IllumiNetPress opened 4 years ago

IllumiNetPress commented 4 years ago

Browsers cache a lot of information (stylesheets, images, JavaScript files, and more) so that when a visitor comes back to your site, the browser doesn't have to reload the entire page. Use a tool like YSlow to see if you already have an expiration date set for your cache. Then set your "expires" header for how long you want that information to be cached. In many cases, unless your site design changes frequently, a year is a reasonable time period. Google has more information about leveraging caching here.

Assiente commented 4 years ago

Useful advice. But here you need to clarify that if the caching is configured incorrectly, the site may not load at all.