I've tried to optimize my website using YSlow for directions. However, even though I have added the DEFLATE
code at .htaccess to gzip the files, YSlow still doesn't show the files as gzipped. I tried testing my website using this: http://www.gidnetwork.com/tools/gzip-test.php and it shows that my webpages are not gzipped or compressed. How else can I make them gzipped or compressed?
This is the .htaccess:
SetOutputFilter DEFLATE
Header unset ETag
FileETag None
################ Expires Control ################
ExpiresActive On
ExpiresDefault A0
<FilesMatch "\.(gif|jpg|jpeg|png|swf)$">
# 2 weeks
ExpiresDefault A1209600
Header append Cache-Control "public"
</FilesMatch>
<FilesMatch "\.(xml|txt|html)$">
# 2 hours
ExpiresDefault A7200
Header append Cache-Control "proxy-revalidate"
</FilesMatch>
<FilesMatch "\.(js|css)$">
# 3 days
ExpiresDefault A259200
Header append Cache-Control "proxy-revalidate"
</FilesMatch>
Apart from this, what else can I do to optimize the speed and reduce the loading time of my webpage?
Also, the image on the page keeps loading every time I refresh the page. How do I cache it to make it load quickly?