1

Closed

Compressed content sends zip?

description

When enabling compressed content the page isnt rendered. INstead it shows a lot of special characters like this: ��

Any idea?

I've added the packages with nuget, enabled the attributes with fluentfilters on everything except partialviews, and my configuration looks like this:
<sectionGroup name="webMarkupMin">
  <section name="core" type="WebMarkupMin.Core.Configuration.CoreConfiguration, WebMarkupMin.Core" />
  <section name="webExtensions" type="WebMarkupMin.Web.Configuration.WebExtensionsConfiguration, WebMarkupMin.Web" />
</sectionGroup>
<modules runAllManagedModulesForAllRequests="true">
  <add name="MunqRequestLifetime" type="Munq.LifetimeManagers.RequestLifetimeModule" preCondition="managedHandler" />
  <add name="HtmlMinificationModule" type="WebMarkupMin.Web.HttpModules.HtmlMinificationModule, WebMarkupMin.Web" />
  <add name="CompressionModule" type="WebMarkupMin.Web.HttpModules.CompressionModule, WebMarkupMin.Web" />

  <add name="Glimpse" type="Glimpse.AspNet.HttpModule, Glimpse.AspNet" preCondition="integratedMode" />
</modules>

  <dependentAssembly>
    <assemblyIdentity name="WebMarkupMin.Core" publicKeyToken="99472178d266584b" culture="neutral" />
    <bindingRedirect oldVersion="0.0.0.0-0.8.2.0" newVersion="0.8.2.0" />
  </dependentAssembly>
<webMarkupMin xmlns="http://tempuri.org/WebMarkupMin.Configuration.xsd">
<core>
  <css defaultMinifier="KristensenCssMinifier">
    <minifiers>
      <add name="NullCssMinifier" displayName="Null CSS Minifier" type="WebMarkupMin.Core.Minifiers.NullCssMinifier, WebMarkupMin.Core" />
      <add name="KristensenCssMinifier" displayName="Mads Kristensen's CSS minifier" type="WebMarkupMin.Core.Minifiers.KristensenCssMinifier, WebMarkupMin.Core" />
    </minifiers>
  </css>
  <js defaultMinifier="CrockfordJsMinifier">
    <minifiers>
      <add name="NullJsMinifier" displayName="Null JS Minifier" type="WebMarkupMin.Core.Minifiers.NullJsMinifier, WebMarkupMin.Core" />
      <add name="CrockfordJsMinifier" displayName="Douglas Crockford's JS Minifier" type="WebMarkupMin.Core.Minifiers.CrockfordJsMinifier, WebMarkupMin.Core" />
    </minifiers>
  </js>
  <logging>
    <loggers>
      <add name="NullLogger" displayName="Null Logger" type="WebMarkupMin.Core.Loggers.NullLogger, WebMarkupMin.Core" />
      <add name="ThrowExceptionLogger" displayName="Throw exception logger" type="WebMarkupMin.Core.Loggers.ThrowExceptionLogger, WebMarkupMin.Core" />
    </loggers>
  </logging>
</core>
<webExtensions enableMinification="true" disableMinificationInDebugMode="false" enableCompression="true" disableCompressionInDebugMode="false" maxResponseSize="100000" />
</webMarkupMin>
</configuration>

file attachments

Closed May 19, 2013 at 1:23 PM by Taritsyn
Hello, Jogai!

Your problem is that you're using the action filter attributes together with the HTTP handlers. All this leads to a double HTML minification and double HTTP compression (and therefore appear strange characters).

In your case, you must use only the action filter attributes.

comments