Table of Contents
Add the following to the beginning of your
.htaccess file. If you have any
301 redirects, place them after the following blocks of code. None of the text below is a placeholder — in other words, don't change anything about the text. Any text that follows after the number sign (#) is a comment, and can be removed.
Leverage browser caching
Click to read below about browser caching.
Click to read below about gzip/compression.
What is browser caching
When a webpage is opened for the first time, a browser has to download all of the files on that page. Once the file is downloaded, the browser is able to reaccess the file much faster if caching is enabled. Once the file is cached, it will continue to use the cached for the amount of time specified.
Verify that browser caching is enabled
What is gzip/compression
Gzip/compression is pretty much what it sounds like. Your web server compresses the file making it much smaller in size and then serves the smaller file to the browser. Enabling this will, on average, reduce the file size anywhere from 70-90%.
Verify that gzip/compression is enabled