Quantcast
Channel: Configuration & Scripting
Viewing all articles
Browse latest Browse all 780

Bundling and Minification not working with IIS 7.5

$
0
0

I am using IIS 7.5 on windows server 2008 R2.

The application is developed in MVC5.

The bundling works fine in IIS

When I run the solution from visual studio it works fine but on production it doesn't work.

It shows /bundle/jquery?v=xxxxxx but the size is different on local machine and production server.

The javascript files and bundled in to file but size is actual size of bundled javascript files, but on local machine the size reduces to almost 50%.

I have set BundleTable.EnableOptimizations = true in application_start funtion in global.asax file.

In web.config I have set <compilation debug="false"/>.

<urlCompression doStaticCompression="true" doDynamicCompression="true" dynamicCompressionBeforeCache="true" />

<httpCompression directory="%SystemDrive%\inetpub\temp\IIS Temporary Compressed Files" noCompressionForRange="false" noCompressionForHttp10="false" noCompressionForProxies="false" minFileSizeForComp="1024">
<scheme dll="%Windir%\system32\inetsrv\gzip.dll" name="gzip"/>
<dynamicTypes>
<add enabled="true" mimeType="text/*" />
<add enabled="true" mimeType="message/*" />
<add enabled="true" mimeType="text/javascript" />
<add enabled="true" mimeType="application/json" />
<add enabled="false" mimeType="*/*" />
</dynamicTypes>
<staticTypes>
<add enabled="true" mimeType="text/*"/>
<add enabled="true" mimeType="message/*"/>
<add enabled="true" mimeType="text/javascript"/>
<add enabled="true" mimeType="application/json"/>
<add enabled="false" mimeType="*/*"/>
</staticTypes>
</httpCompression>

dynamic compression is enabled from IIS.

These configurations are already present.

Also when I look at the requests in browser toolbar, in the response headers I do not see content-encoding=gzip.

Is it something to do with gzip?

Is there something else I need to do?

Please suggest.


Viewing all articles
Browse latest Browse all 780

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>