2011-01-11 11 views
15

Ich habe derzeit sowohl statische als auch dynamische Komprimierung konfiguriert. Die statische Komprimierung funktioniert, die dynamische Komprimierung funktioniert jedoch nicht, wenn sie über YSlow und Fiddler aktiviert wird.Dynamische Komprimierung funktioniert nicht IIS 7.5

In meinem applicationHost.config, ich habe die folgenden Einstellungen:

<urlCompression doStaticCompression="true" doDynamicCompression="true" dynamicCompressionBeforeCache="true" /> 
<httpCompression directory="%SystemDrive%\inetpub\temp\IIS Temporary Compressed Files" maxDiskSpaceUsage="100" minFileSizeForComp="256"> 
      <scheme name="gzip" dll="%Windir%\system32\inetsrv\gzip.dll" dynamicCompressionLevel="1" /> 
      <dynamicTypes> 
       <add mimeType="text/*" enabled="true" /> 
       <add mimeType="message/*" enabled="true" /> 
       <add mimeType="application/x-javascript" enabled="true" /> 
       <add mimeType="*/*" enabled="true" /> 
      </dynamicTypes> 
      <staticTypes> 
       <add mimeType="text/*" enabled="true" /> 
       <add mimeType="message/*" enabled="true" /> 
       <add mimeType="application/x-javascript" enabled="true" /> 
       <add mimeType="application/atom+xml" enabled="true" /> 
       <add mimeType="application/xaml+xml" enabled="true" /> 
       <add mimeType="*/*" enabled="true" /> 
      </staticTypes> 
     </httpCompression> 
<serverRuntime frequentHitThreshold="1" frequentHitTimePeriod="01:00:00" /> 

Meine web.config hat:

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

Die Module installiert sind, und wenn ich die Anforderungsfehler Trace verwenden, Ich bekomme ein paar dynamische Komprimierungstreffer, aber nichts über Erfolg oder Misserfolg. Nur diese Art von Ergebnissen:

ModuleName DynamicCompressionModule 
Notification 536870912 
fIsPostNotification false 
Notification SEND_RESPONSE 

ModuleName DynamicCompressionModule 
Notification 536870912 
fIsPostNotificationEvent false 
NotificationStatus 0 
Notification SEND_RESPONSE 
NotificationStatus NOTIFICATION_CONTINUE 

ModuleName DynamicCompressionModule 
Notification 256 
fIsPostNotification true 
Notification RELEASE_REQUEST_STATE 

ModuleName DynamicCompressionModule 
Notification 256 
fIsPostNotificationEvent true 
NotificationStatus 0 
Notification RELEASE_REQUEST_STATE 
NotificationStatus NOTIFICATION_CONTINUE 

Ich versuche, meine Aspx-Dateien zu komprimieren. Jede Hilfe wäre willkommen. Vielen Dank.

+0

Ich habe das gleiche Problem. Die Anforderungsablaufverfolgungsprotokolle zeigen nichts in den DynamicCompressionModule-Abschnitten an und es gibt keine Hinweise darauf, warum sie übersprungen wurden. –

+0

Haben Sie versucht, fehlgeschlagene Anfrage Tracing (http://learn.iis.net/page.aspx/266/troubleshooting-failed-requests-using-tracing-in-iis7/) zu verwenden, sollte es Ihnen den Grund zeigen, warum die Komprimierung nicht ist erledigt. –

+0

Carlos, Justins Post enthält die Ausgabe seiner fehlgeschlagenen Trace-Dateien. Meine sind fast identisch, wie ich in meinem Kommentar gesagt habe. –

Antwort

1

prüfen dieses Themas, es klingt wie Sie ein ähnliches Problem haben:

How can I get gzip compression in IIS7 working?

+0

In diesem Thread hat der Typ Failed Request Tracing aktiviert, und die Protokolle enthielten Fehlermeldungen, die ihm mitteilten, was falsch war. In meinem Fall (und Justins) zeigen die Protokolle der fehlgeschlagenen Anforderung keine Aktionen an, die vom Komprimierer ausgeführt werden. –

Verwandte Themen