Closed GoogleCodeExporter closed 8 years ago
.NET 4.0 / VS2010
IIS Integrated mode
Original comment by cra...@crgits.com
on 5 Jun 2011 at 8:02
This is actually expected behavior from the module. It is intercepting the
request for your CSS and, not finding any entry in the configuration, is
assuming it should be unencrypted. Therefore, it is redirecting those requests
via HTTP.
You can change this behavior by adding one or more entries to your
configuration for this module with the path(s) to your resources and indicating
to ignore them. Here is an example.
<paths>
...
<!--
Ignore all requests for files in the Media sub-directory.
* This will keep the same protocol as the page when images or stylesheets are requested.
-->
<add path="~/Media/" security="Ignore" />
...
Original comment by vent...@gmail.com
on 5 Jun 2011 at 3:17
Ok, I wasn't entirely sure that was the correct approach. Appreciate the
response. I believe this exchange will be helpful to others.
Original comment by cra...@crgits.com
on 5 Jun 2011 at 4:52
Yes. I've been considering having a new flag that tells the module to
automatically ignore requests that it can absolutely determine are media
resources. This will work if the resources are named conventionally (i.e.
*.css, *.png, etc.). However, it won't work if a resource is delivered via a
handler or other script (i.e. GetImage.ahxd, RenderStyles.aspx, etc.).
Original comment by vent...@gmail.com
on 7 Jun 2011 at 10:44
Original issue reported on code.google.com by
cra...@crgits.com
on 5 Jun 2011 at 7:59