I've got an Apache vhost which performs a number of rewrite operations (using mod_rewrite) on the requested URLs. Some of these RewriteRule calls redirect the browser to other hosts (using 301 and 302 redirections).
I have set a default expiry of 1 second in that vhost file:
ExpiresActive On ExpiresDefault "access plus 1 second"
and accordingly, all of the redirections include this header:
Now what I'm trying to do is to output a different caching header in the case of one particular redirection. I want most of the redirections (the 302s) to continue have a 1 second expiry, but for one of them (a 301), I'd like to use a 1-day expiry instead.
Is this doable?