Esse é o comportamento esperado ao executar scripts CGI. Da versão mais recente (2.4) de os documentos mod_headers :
The default value of onsuccess may need to be changed to always under the circumstances similar to those listed below. Note also that repeating this directive with both conditions makes sense in some scenarios because always is not a superset of onsuccess with respect to existing headers:
[...]
You're modifying or removing a header generated by a CGI script, in which case the CGI scripts are in the table corresponding to always and not in the default table.
A edição original (com, talvez, uma explicação melhor) está no Bug 49308 .