We are serving static files from a build process where the output files are to be served as application/octet-stream. The problem is that the files extensions are related to their version, so I need:
.000 application/octet-stream
.001 application/octet-stream
…
.100 application/octet-stram
…
Is there a way in IIS7 to add a pattern of extensions or some other way so I don’t have to manually type in 100+ new entries?
No, there is really no way to specify a regex or pattern for that. I’d suggest scripting it from the command line. See this for the syntax, but for a single mime type something like this should work:
So to do it for 100 of them, try this in a windows cmd file: