Why is ScriptResource.axd compressed, even though IIS compression is disabled?

后端 未结 1 1116
忘了有多久
忘了有多久 2021-01-05 20:23

I run an ASP.NET application on IIS 6.0. Usually I have compression turned on for both dynamic and static files. However, I\'ve turned compression off temporarily, but \"Scr

1条回答
  •  再見小時候
    2021-01-05 20:39

    Web Resources are handled by the AssemblyResourceLoader class, which is designed to retrieve assembly resources and serve them to the Web browser. Web Resources are not compressed by default.

    Script Resources are handled by the ScriptResourceHandler class, which takes care of all requests for embedded script files that are referenced through the ScriptManager class. Script Resources are automatically compressed with GZIP by default for HTTP delivery.

    0 讨论(0)
提交回复
热议问题