Very nice, however you are adding a lot of unnecessary load by constantly redirecting images through redir.php ; gziping may reduce bandwidth, but it slows the server down.
A better fix would be:
Put this in your .htaccess file:
Code:
# Turn on Expires and set default to 0 ExpiresActive On ExpiresDefault A0 # Set up caching on media files for 1 year (forever?) ExpiresDefault A29030400Header append Cache-Control "public"# Set up caching on media files for 1 weekExpiresDefault A604800Header append Cache-Control "public, proxy-revalidate"# Set up 2 Hour caching on commonly updated filesExpiresDefault A7200Header append Cache-Control "private, proxy-revalidate, must-revalidate"# Force no caching for dynamic filesExpiresDefault A0Header set Cache-Control "no-cache, no-store, must-revalidate, max-age=0, proxy-revalidate, no-transform"Header set Pragma "no-cache"