2015-01-08 | 2584 Print PDF
STEPS TO IMPROVE YOUR WEBSITE PAGE SPEED CHAPTER 3
This step is highly important as it entails optimize webpage speed performance techniques.
You will need to get most work done on your server side to make this chapter work for you.
Open the file and place the codes in it.
By using this code, our main static files (images, CSS, PDF’s, JS, etc.) will be cached in order to produce faster loading times in the future.
By using this step you have also identify the expiration span for your files.
By removing the
ETag header, you disable caches and browsers from being able to validate files, so they are forced to rely on your
Entity tags (ETags) are a mechanism to check for a newer version of a cached file.
Add these lines to
Header unset ETag FileETag None
If you remove the
ETag header, you will totally eliminate
If-None-Match requests and their
304 Not Modified responses, so a file will stay cached without checking for updates until the Expires header indicates new content is available!
Add these lines to
Header unset Last-Modified
Or if you have a nice host provider like mine you could shot them an email to help you install the modules on your server.
There are filters for each of the different options and match fairly closely to the issues that the PageSpeed Insights tool will give you. The complete list of filters are all documented but the config below is what worked for me to achieve a 100% speed ranking with the PageSpeed Insights tool.
The tool runs in the background so not every rule will be satisfied on the first page load with the new config turned on. Some processes such as the recompression of images and fetching / inlining of css scripts will only be served to the browser once the external process has completed. It would be a bit of an anti-pattern for a page speed module to make a request slower whilst it finishes its compression.
This sums it all up for our topic on how to optimize webpage speed performance, now the next thing to look at is our case study using our site as an example.