i figured out that is was the wp-cache plugin that was causing the problem when going to the www address. I tried super-cache and it still doesn’t work. Still could use some help on getting the browser check to work before it gets to the cached page.