>Oh, you've got the IIS blues! I've had a bad "case" of those myself >from time to time.
>
>Whenever possible, I introduce the convention that all files and
>folders must be lowercase. It can be difficult getting the whole of
>a large web team to get on board, however. The redirect to lower
>case is a good thing, however the file itself should natively BE
>lowercase. There's no reason not to change .js or .css files to
>lowercase, even now.
Thanks to Ted and all of you for your help! The 301 redirect was caused by the URLRewrite rule to change all URLs - even URLs to CSS and JS files (JQuery javascript libraries included) - to lower case.
Once I removed the URLRewrite rule to Lower Case, I got proper 304 status codes for the CSS and JS files: [
i.imgur.com ]
Curiously, the URLRewrite rule also causes a 301 redirect for the JQuery javascript libraries, even though the JQuery library names are already in lower case: [
i.imgur.com ]. To have IIS not URLRewrite CSS files, JS files, etc, just add this line:
<add input="{URL}" pattern="^.*\.(axd|css|js|jpg|jpeg|png|gif)$" negate="true" ignoreCase="true" />
I found the above line at:
[
umbraco.miketaylor.eu ]