Hi, for the expires, yes sure.
First of all, I suggest you to read this two links, the first is about
Apche mod_expires for 1.3 and the second one,
mod_deflate (almost the same as gzip) is for Apache 2.2.
After this, normally you achieved to make your own config file for an .htaccess that you can put in the directory where the files that causing problems are, or in the root directly (but in this case be carefull with the interactions of smartoptimizer!)
Here you are some examples of what i made for me.
This one is for my images directory:
Code:
<Files .htaccess>
order allow,deny
deny from all
</Files>
###activate mod_deflate
SetOutputFilter DEFLATE
###exclude some types (no compression)
SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary)
### activate mod_expires
ExpiresActive On
### Expire les fichiers un mois après leur accès
ExpiresByType image/gif A2592000
ExpiresByType image/png A2592000
ExpiresByType image/jpg A2592000
ExpiresByType image/jpeg A2592000
For css and js you must add this two lines:
Code:
ExpiresByType text/css A2592000
ExpiresByType application/x-javascript A2592000
Note the A2592000 that's telling the 1 month expiration delay.
If you want to exclude some types but for the mod_gzip, in fact no compression:
Code:
<IfModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_item_exclude file \.(js|css)$
mod_gzip_item_exclude file \.gz$
mod_gzip_item_exclude file \.zip$
mod_gzip_item_exclude mime ^image/
</IfModule>
But this one is doing the same job as smartoptimizer does.
So with that you can make a really personal configuration, just suits your needs.
Last thing that I can say is that you can never have a 80 score all the time, especially because if you got some flash banners or googles ads, you can do nothing with them.
So sometimes you will have 80 and other times less or more.
And be carrefull to NOT compress or minify th JS that are already ! Some plugins or modules does that by default, so check carefully your configurations.