I'm trying to change the cache-control & Expires headers coming through an apache reverse_proxy. I can't change the origin server configs or code ATM.
ExpiresActive On
Header unset Etag
Header unset Cache-Control
Header unset Expires
<LocationMatch ".(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
Header set Cache-Control "max-age=290304000, public"
</LocationMatch>
.. and
<LocationMatch ".(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
ExpiresActive On
Header unset Etag
Header unset Cache-Control
Header unset Expires
Header set Cache-Control "public"
Header set Cache-Control "max-age=290304000, public"
</LocationMatch>
are not doing it & when restarting apache2 there are no complaints about the config.
Testing by using "curl -I ...image.jpg"