Conditionally set headers in Apache htaccess
snippet in htaccess

Conditionally set headers in Apache htaccess

user2237

<If "%{REQUEST_URI} =~ /\.(gif|jpe?g|png|css|js)$/">
  #put your header set stuff here
</If>