I have built a substituion filter that is already working as I expect it. It adds a timestamp to the end of a html file (EOF).
ExtFilterDefine testfilter mode=output intype=text/html cmd="/usr/bin/perl -pe 's|^|qq(\/*) . time() . qq(\*/)|e if eof'"
SetOutputFilter testfilter
My goal is, to get this run for more than one mime-types. Is there a way to specify the intype of the filter and assign two mime-types at only one filter?
I need text/css and text/js as mime-type for the intype of my current filter. I am looking for an option without writing the same code twice.
I tried the following, but it is not working and end up at a apache error:
ExtFilterDefine testfilter mode=output intype=text/css application/javascript cmd="/usr/bin/perl -pe 's|^|qq(\/*) . time() . qq(\*/)|e if eof'"
Does somebody as any ideas how to get it run the right way without to much more code?