This entire step takes 5 minutes. First, you need to create a blank ".htaccess" file, then use your mouse and keyboard to copy some free code from the web for "compressing web page data within a .htaccess file", then paste that code into your .htaccess file, then "save" the file, then upload it to your website's root folder.
Sound complicated? It's not. You may even have a friendly tech support guy or gal at your web hosting company who can install one of these for you, free of charge. It doesn't hurt to ask.
If you're on Windows, use Notepad to open a blank document, and then save the file as ".htaccess" (please note you may have to select "All Files" within Windows Explorer so that the .htaccess is visible on your hard drive).
On Mac, the file is hidden and you won't be able to see it in the Finder. In this case, open up your FTP program, and then go to the root folder of your web page on your hard drive and look for it there within the FTP program. When you find it, now you can upload it to your root folder where your website is hosted (root folder is the same folder that your home page or index.html page resides in typically; having problems? Call your webhost's tech support to walk you through this!)
Just like that, with less than five minutes of work, you've just completed one more step toward making your web page load considerably faster. With each change you make, test your website using Google's Speed Page Test Tool and or GTMetrix linked to in previous paragraphs.
Header set Cache-Control "max-age=604800"
# cache html and htm files for one day
Header set Cache-Control "max-age=43200"
ExpiresByType image/jpg "access 1 month"
ExpiresByType image/jpeg "access 1 month"
ExpiresByType image/gif "access 1 month"
ExpiresByType image/png "access 1 month"
ExpiresByType text/css "access 1 week"
ExpiresByType application/pdf "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 month"
ExpiresDefault "access 2 days"
## EXPIRES CACHING ##
© 2017, MyGoogleSecrets.com. All rights reserved.
No portion of this website may be copied or reposted and is protected by the Digital Millennium Copyright Act. Any plagiarism of this website or copyright violations will be prosecuted to the fullest extent of the law.