should be ok.
in .htaccess, at the begining, add
RewriteCond %{HTTP_HOST} ^www\.domain\.com$ [NC]
RewriteRule .* - [E=Cache-Control:no-cache]
you may need review the remaining rewrite rules, check those rules with
E=Cache-Control:max-age=xxx
to ensure above no-cache rule will not be overwritten.