HI! I have no idea how to set image cache expiration. Google always tells me to improve page speed so i need to set image cache expiration. Well my site is written in html. Ive done a .htaccess file -no use. I tried these: <IfModule mod_expires.c> ExpiresActive On ExpiresByType image/gif "access plus 1 month" ExpiresByType image/jpeg "access plus 1 month" ExpiresByType image/png "access plus 1 month" </IfModule> AND : <IfModule mod_headers.c> <filesMatch "\.(gif|jpg|jpeg|png)$"> Header set Cache-Control "max-age=2419200" Header set Expires "Thu, 15 Apr 2112 20:00:00 GMT" </filesMatch> </IfModule> AND THIS: <IfModule mod_expires.c> ExpiresActive On ExpiresByType text/html "access plus 1 seconds" ExpiresByType image/gif "access plus 1 years" ExpiresByType image/jpeg "access plus 1 years" ExpiresByType image/png "access plus 1 years" ExpiresByType image/x-icon "access plus 1 years" ExpiresByType text/css "access plus 1 years" ExpiresByType text/javascript "access plus 1 years" ExpiresByType application/x-javascript "access plus 1 years" ExpiresByType application/x-shockwave-flash "access plus 1 years" </IfModule> Ive put some meta tags into the html: <META content=max-age name=cache-control> <META content="1 month" name=expires> It has no use!!! Altough the codes work well - the images go to the cache, it seems that google doesnt notice the change! Speed insights just tells me the same: set image cache expiration. Any idea what to do?
Hmm, what content management system you use. If you use wordpress than you have the w3 total cache plugin.
Well read it again the guy says: my site is written in html. Type: "improve page speed" in Google and follow.
If your site is in html and your site does not have big photos you generally don't have to worry about site speed.
If the website is made of HTML files the best way to set up cache and cache expiration is by means of meta tags. But either controlling cache from the HTML files or doing it via .htaccess, this website has a very complete and informative tutorial with examples that might help, http://www.mnot.net/cache_docs/
now wordpress is widely used application for creating website.i have no idea HTML but word press is really good.
It's more than likely ads on your site that's causing the logjam and you wouldn't want to remove those. What's your average load speed?