We are having issues trying to server .js and .html5 files via an Azure app servicing running imageresizer which in turn, points to a blob store.
This works:
http://devimageresizecdnbypass.reiwa.net//bannerads/10688-0/test-image.jpg
This doesn't:
http://devimageresizecdnbypass.reiwa.net/bannerads/10688-0/js_ex3.js
Direct links to the blob store thereby bypassing imageresizer works.
I have a rewrite in the web.config to add imagefiles 'folder'.
<rule name="bannerads">
<match url="^bannerads/([_0-9a-z-.]+)/([_ ,0-9a-z-.]+)" />
<action type="Rewrite" url="/imagefiles/bannerads/{R:1}/{ToLower:{R:2}}" />
</rule>
and amongst other entries, the following -
<staticContent>
<remove fileExtension=".pdf" />
<mimeMap fileExtension=".pdf" mimeType="application/pdf" />
<remove fileExtension=".js" />
<mimeMap fileExtension=".js" mimeType="application/x-javascript" />
</staticContent>
Diagnosing it with Microsoft, they believe imageresizer isn't pre-pending the blob URL to the request passed back to Azure when non jpg files are requested.
We currently run imageresizer on an on-premises Windows 2008r2/iis box and these files are serving fine.