Setting browser caching

When checking our sites with some of the common page speed tools, a recurring theme of “Leverage Browser Caching” comes up.

Browser caching is simply directives in the .htaccess file that tells the user’s browser how to cache some of the site’s content. Content that is cached at the browser level does not have to be reloaded every time the user views it. For example, a header image could be cached. Then, as the user views other pages, the header image is retrieved from the user’s computer, not over the network.

NOTE – ANY TIME YOU WORK WITH THE .HTACCESS FILE YOU COULD BRING YOUR SITE DOWN.