dynamic compression iis 7
dynamic compression iis 7
am 11.04.2008 15:37:54 von gary
Hi,
I have turned on dynamic compression running an asp.net application and i
don't see any compression taking place? Am i missing something.
I also ran these command:
C:\windows\system32\inetsrv\appcmd set config -section:urlCompression
/doDynamicCompression:true
C:\windows\system32\inetsrv\appCmd set config -section:httpCompression
/dynamicCompressionDisableCpuUsage:50
C:\windows\system32\inetsrv\appCmd set config -section:httpCompression
/dynamicCompressionEnableCpuUsage:30
but still didn't see any changes when i look at the output of the source,
nor is there anything sitting in the temporary compression folder.
My cpu usage is sitting at close 0% to 5%.
what have i missed?
Thanks
RE: dynamic compression iis 7
am 14.04.2008 13:18:39 von wjzhang
Hi Gary,
Have you also set dynamicCompressionLevel and dynamicCompressionBeforeCache?
dynamicCompressionLevel controls the CPU hit and algorithms used for
compression. The first algorithm is executed if the level is set from 0 to
3, another from leve 4 to 9, and another at level 10.
When dynamicCompressionBeforeCache is set to false, IIS puts the
noncompressed response into output cache. Then every time that the response
is requested, IIS dynamically compresses the cached response as it is sent
to the client. When it's set to true, IIS dynamically compresses the
response the first time a request is made. The default value is true.
So you may change these 2 settings in applicationHost.config file and test
again.
If still no avail, please update here. I will help review your config file
to address what the problem is.
Have a great week.
Sincerely,
WenJun Zhang
Microsoft Online Community Support
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@microsoft.com.
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/de fault.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx .
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
RE: dynamic compression iis 7
am 16.04.2008 12:23:23 von wjzhang
Hi Gray,
I'm looking forward to your update on this question.
Thanks.
Sincerely,
WenJun Zhang
Microsoft Online Community Support
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@microsoft.com.
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/de fault.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx .
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
Re: dynamic compression iis 7
am 16.04.2008 15:49:22 von gary
according to this document
http://msdn2.microsoft.com/en-us/library/ms689496(VS.85).asp x
the dynamicCompressionBeforeCache default is false, not true.
Also, rather than edit the applicationHost.config file directly; do you have
the appcmd(s) syntax for things i should try for the same results?
one other thing, maybe i've got some confusion. I am looking for the
compression results to remove mostly the white space from the html source
returned to the browser...am i correct? Isn't that what the compression is
supposed to do?
Also some of my pages are html, but some are generated programaticly as aspx
files. So whatever settings i make, they need to work for both.
Thanks,
Gary
""WenJun Zhang[msft]"" wrote in message
news:l9MjTFinIHA.4932@TK2MSFTNGHUB02.phx.gbl...
> Hi Gary,
>
> Have you also set dynamicCompressionLevel and
> dynamicCompressionBeforeCache?
>
> dynamicCompressionLevel controls the CPU hit and algorithms used for
> compression. The first algorithm is executed if the level is set from 0 to
> 3, another from leve 4 to 9, and another at level 10.
>
> When dynamicCompressionBeforeCache is set to false, IIS puts the
> noncompressed response into output cache. Then every time that the
> response
> is requested, IIS dynamically compresses the cached response as it is sent
> to the client. When it's set to true, IIS dynamically compresses the
> response the first time a request is made. The default value is true.
>
> So you may change these 2 settings in applicationHost.config file and test
> again.
>
> If still no avail, please update here. I will help review your config file
> to address what the problem is.
>
> Have a great week.
>
> Sincerely,
>
> WenJun Zhang
>
> Microsoft Online Community Support
>
> Delighting our customers is our #1 priority. We welcome your comments and
> suggestions about how we can improve the support we provide to you. Please
> feel free to let my manager know what you think of the level of service
> provided. You can send feedback directly to my manager at:
> msdnmg@microsoft.com.
>
> ==================================================
> Get notification to my posts through email? Please refer to
> http://msdn.microsoft.com/subscriptions/managednewsgroups/de fault.aspx#notif
> ications.
>
> Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
> where an initial response from the community or a Microsoft Support
> Engineer within 1 business day is acceptable. Please note that each follow
> up response may take approximately 2 business days as the support
> professional working with you may need further investigation to reach the
> most efficient resolution. The offering is not appropriate for situations
> that require urgent, real-time or phone-based interactions or complex
> project analysis and dump analysis issues. Issues of this nature are best
> handled working with a dedicated Microsoft Support Engineer by contacting
> Microsoft Customer Support Services (CSS) at
> http://msdn.microsoft.com/subscriptions/support/default.aspx .
> ==================================================
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>
Re: dynamic compression iis 7
am 17.04.2008 04:05:21 von David Wang
Compression does a LOT more than "remove mostly the white space".
Dynamic Compression is "dynamic", on the fly, so nothing will EVER
show up in the Temporary Compression folder. Static Compression items
will show up there -- you can treat that folder as a disk-based cache
for static compression results, and dynamic compression is not worth
caching since it can dynamically change.
IIS will NOT send back a compressed response UNLESS the client
indicates that it supports it, along with IIS being configured to send
compressed responses.
Dynamic compression is enabled on IIS7 by default, so I suspect you
are either using a client that is not asking for compressed content,
or you are not looking at the raw HTTP RESPONSE with the client.
Can you provide the raw HTTP REQUEST you are using which does not have
compressed response, and please verify that you are looking at raw
HTTP RESPONSE when checking if things are compressed.
//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//
On Apr 16, 6:49=A0am, "gary" wrote:
> according to this documenthttp://msdn2.microsoft.com/en-us/library/ms68949=
6(VS.85).aspx
>
> the dynamicCompressionBeforeCache default is false, not true.
>
> Also, rather than edit the applicationHost.config file directly; do you ha=
ve
> the appcmd(s) syntax for things i should try for the same results?
>
> one other thing, maybe i've got some confusion. =A0I am looking for the
> compression results to remove mostly the white space from the html source
> returned to the browser...am i correct? Isn't that what the compression is=
> supposed to do?
>
> Also some of my pages are html, but some are generated programaticly as as=
px
> files. =A0 So whatever settings i make, they need to work for both.
>
> Thanks,
>
> Gary
>
> ""WenJun Zhang[msft]"" wrote in message
>
> news:l9MjTFinIHA.4932@TK2MSFTNGHUB02.phx.gbl...
>
>
>
> > Hi Gary,
>
> > Have you also set dynamicCompressionLevel and
> > dynamicCompressionBeforeCache?
>
> > dynamicCompressionLevel controls the CPU hit and algorithms used for
> > compression. The first algorithm is executed if the level is set from 0 =
to
> > 3, another from leve 4 to 9, and another at level 10.
>
> > When dynamicCompressionBeforeCache is set to false, IIS puts the
> > noncompressed response into output cache. Then every time that the
> > response
> > is requested, IIS dynamically compresses the cached response as it is se=
nt
> > to the client. When it's set to true, IIS dynamically compresses the
> > response the first time a request is made. The default value is true.
>
> > So you may change these 2 settings in applicationHost.config file and te=
st
> > again.
>
> > If still no avail, please update here. I will help review your config fi=
le
> > to address what the problem is.
>
> > Have a great week.
>
> > Sincerely,
>
> > WenJun Zhang
>
> > Microsoft Online Community Support
>
> > Delighting our customers is our #1 priority. We welcome your comments an=
d
> > suggestions about how we can improve the support we provide to you. Plea=
se
> > feel free to let my manager know what you think of the level of service
> > provided. You can send feedback directly to my manager at:
> > msd...@microsoft.com.
>
> > ==================== =====
==================== =====3D=
=3D
> > Get notification to my posts through email? Please refer to
> >http://msdn.microsoft.com/subscriptions/managednewsgroups/d efault.asp...
> > ications.
>
> > Note: The MSDN Managed Newsgroup support offering is for non-urgent issu=
es
> > where an initial response from the community or a Microsoft Support
> > Engineer within 1 business day is acceptable. Please note that each foll=
ow
> > up response may take approximately 2 business days as the support
> > professional working with you may need further investigation to reach th=
e
> > most efficient resolution. The offering is not appropriate for situation=
s
> > that require urgent, real-time or phone-based interactions or complex
> > project analysis and dump analysis issues. Issues of this nature are bes=
t
> > handled working with a dedicated Microsoft Support Engineer by contactin=
g
> > Microsoft Customer Support Services (CSS) at
> >http://msdn.microsoft.com/subscriptions/support/default.asp x.
> > ==================== =====
==================== =====3D=
=3D
> > This posting is provided "AS IS" with no warranties, and confers no
> > rights.- Hide quoted text -
>
> - Show quoted text -
Re: dynamic compression iis 7
am 17.04.2008 21:30:44 von gary
i am using ie7 and am looking at the source generated when you select
"view-> source" from the menu bar with ie 7
"David Wang" wrote in message
news:d23276bd-3411-4eb9-838d-86a952486c6e@k37g2000hsf.google groups.com...
Compression does a LOT more than "remove mostly the white space".
Dynamic Compression is "dynamic", on the fly, so nothing will EVER
show up in the Temporary Compression folder. Static Compression items
will show up there -- you can treat that folder as a disk-based cache
for static compression results, and dynamic compression is not worth
caching since it can dynamically change.
IIS will NOT send back a compressed response UNLESS the client
indicates that it supports it, along with IIS being configured to send
compressed responses.
Dynamic compression is enabled on IIS7 by default, so I suspect you
are either using a client that is not asking for compressed content,
or you are not looking at the raw HTTP RESPONSE with the client.
Can you provide the raw HTTP REQUEST you are using which does not have
compressed response, and please verify that you are looking at raw
HTTP RESPONSE when checking if things are compressed.
//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//
On Apr 16, 6:49 am, "gary" wrote:
> according to this
> documenthttp://msdn2.microsoft.com/en-us/library/ms689496(VS .85).aspx
>
> the dynamicCompressionBeforeCache default is false, not true.
>
> Also, rather than edit the applicationHost.config file directly; do you
> have
> the appcmd(s) syntax for things i should try for the same results?
>
> one other thing, maybe i've got some confusion. I am looking for the
> compression results to remove mostly the white space from the html source
> returned to the browser...am i correct? Isn't that what the compression is
> supposed to do?
>
> Also some of my pages are html, but some are generated programaticly as
> aspx
> files. So whatever settings i make, they need to work for both.
>
> Thanks,
>
> Gary
>
> ""WenJun Zhang[msft]"" wrote in message
>
> news:l9MjTFinIHA.4932@TK2MSFTNGHUB02.phx.gbl...
>
>
>
> > Hi Gary,
>
> > Have you also set dynamicCompressionLevel and
> > dynamicCompressionBeforeCache?
>
> > dynamicCompressionLevel controls the CPU hit and algorithms used for
> > compression. The first algorithm is executed if the level is set from 0
> > to
> > 3, another from leve 4 to 9, and another at level 10.
>
> > When dynamicCompressionBeforeCache is set to false, IIS puts the
> > noncompressed response into output cache. Then every time that the
> > response
> > is requested, IIS dynamically compresses the cached response as it is
> > sent
> > to the client. When it's set to true, IIS dynamically compresses the
> > response the first time a request is made. The default value is true.
>
> > So you may change these 2 settings in applicationHost.config file and
> > test
> > again.
>
> > If still no avail, please update here. I will help review your config
> > file
> > to address what the problem is.
>
> > Have a great week.
>
> > Sincerely,
>
> > WenJun Zhang
>
> > Microsoft Online Community Support
>
> > Delighting our customers is our #1 priority. We welcome your comments
> > and
> > suggestions about how we can improve the support we provide to you.
> > Please
> > feel free to let my manager know what you think of the level of service
> > provided. You can send feedback directly to my manager at:
> > msd...@microsoft.com.
>
> > ==================================================
> > Get notification to my posts through email? Please refer to
> >http://msdn.microsoft.com/subscriptions/managednewsgroups/d efault.asp...
> > ications.
>
> > Note: The MSDN Managed Newsgroup support offering is for non-urgent
> > issues
> > where an initial response from the community or a Microsoft Support
> > Engineer within 1 business day is acceptable. Please note that each
> > follow
> > up response may take approximately 2 business days as the support
> > professional working with you may need further investigation to reach
> > the
> > most efficient resolution. The offering is not appropriate for
> > situations
> > that require urgent, real-time or phone-based interactions or complex
> > project analysis and dump analysis issues. Issues of this nature are
> > best
> > handled working with a dedicated Microsoft Support Engineer by
> > contacting
> > Microsoft Customer Support Services (CSS) at
> >http://msdn.microsoft.com/subscriptions/support/default.asp x.
> > ==================================================
> > This posting is provided "AS IS" with no warranties, and confers no
> > rights.- Hide quoted text -
>
> - Show quoted text -
Re: dynamic compression iis 7
am 18.04.2008 00:11:20 von David Wang
Compression is a part of content-encoding, and web browsers will only
show you the final data stream after all content-encoding, transfer-
encoding, and lower-layer transformations have been unwrapped. Thus,
you cannot use the web browser to validate compression.
The exact same logic applies to:
- SSL -- view->source doesn't show you the encrypted data
- Transfer-Encoding: chunked -- view->source doesn't show you the
chunked response entity
Compression does NOT alter your HTML content to strip out whitespace
and sending that altered HTML. That is not "compression" but rather
"compacting".
Compression does something better, which is to transform your HTML
content to something that usually takes far less bytes to transfer,
send that over the wire, and the remote user agent (i.e. browser)
knows how to decompress and retrieve the original HTML content, with
all the whitespaces losslessly preserved.
Of course, Compression depends on the remote user agent being able to
decompress, which may not be the case for mobile phones -- in which
case the "compacting" of whitespace is a possible alternative.
//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//
On Apr 17, 12:30=A0pm, "gary" wrote:
> i am using ie7 and am looking at the source generated when you select
> "view-> source" from the menu bar with ie 7
>
> "David Wang" wrote in message
>
> news:d23276bd-3411-4eb9-838d-86a952486c6e@k37g2000hsf.google groups.com...
> Compression does a LOT more than "remove mostly the white space".
>
> Dynamic Compression is "dynamic", on the fly, so nothing will EVER
> show up in the Temporary Compression folder. Static Compression items
> will show up there -- you can treat that folder as a disk-based cache
> for static compression results, and dynamic compression is not worth
> caching since it can dynamically change.
>
> IIS will NOT send back a compressed response UNLESS the client
> indicates that it supports it, along with IIS being configured to send
> compressed responses.
>
> Dynamic compression is enabled on IIS7 by default, so I suspect you
> are either using a client that is not asking for compressed content,
> or you are not looking at the raw HTTP RESPONSE with the client.
>
> Can you provide the raw HTTP REQUEST you are using which does not have
> compressed response, and please verify that you are looking at raw
> HTTP RESPONSE when checking if things are compressed.
>
> //Davidhttp://w3-4u.blogspot.comhttp://blogs.msdn.com/David. Wang
> //
>
> On Apr 16, 6:49 am, "gary" wrote:
>
>
>
> > according to this
> > documenthttp://msdn2.microsoft.com/en-us/library/ms689496(VS .85).aspx
>
> > the dynamicCompressionBeforeCache default is false, not true.
>
> > Also, rather than edit the applicationHost.config file directly; do you
> > have
> > the appcmd(s) syntax for things i should try for the same results?
>
> > one other thing, maybe i've got some confusion. I am looking for the
> > compression results to remove mostly the white space from the html sourc=
e
> > returned to the browser...am i correct? Isn't that what the compression =
is
> > supposed to do?
>
> > Also some of my pages are html, but some are generated programaticly as
> > aspx
> > files. So whatever settings i make, they need to work for both.
>
> > Thanks,
>
> > Gary
>
> > ""WenJun Zhang[msft]"" wrote in message
>
> >news:l9MjTFinIHA.4932@TK2MSFTNGHUB02.phx.gbl...
>
> > > Hi Gary,
>
> > > Have you also set dynamicCompressionLevel and
> > > dynamicCompressionBeforeCache?
>
> > > dynamicCompressionLevel controls the CPU hit and algorithms used for
> > > compression. The first algorithm is executed if the level is set from =
0
> > > to
> > > 3, another from leve 4 to 9, and another at level 10.
>
> > > When dynamicCompressionBeforeCache is set to false, IIS puts the
> > > noncompressed response into output cache. Then every time that the
> > > response
> > > is requested, IIS dynamically compresses the cached response as it is
> > > sent
> > > to the client. When it's set to true, IIS dynamically compresses the
> > > response the first time a request is made. The default value is true.
>
> > > So you may change these 2 settings in applicationHost.config file and
> > > test
> > > again.
>
> > > If still no avail, please update here. I will help review your config
> > > file
> > > to address what the problem is.
>
> > > Have a great week.
>
> > > Sincerely,
>
> > > WenJun Zhang
>
> > > Microsoft Online Community Support
>
> > > Delighting our customers is our #1 priority. We welcome your comments
> > > and
> > > suggestions about how we can improve the support we provide to you.
> > > Please
> > > feel free to let my manager know what you think of the level of servic=
e
> > > provided. You can send feedback directly to my manager at:
> > > msd...@microsoft.com.
>
> > > ==================== ===3D=
==================== =====3D=
==
> > > Get notification to my posts through email? Please refer to
> > >http://msdn.microsoft.com/subscriptions/managednewsgroups/d efault.asp..=
..
> > > ications.
>
> > > Note: The MSDN Managed Newsgroup support offering is for non-urgent
> > > issues
> > > where an initial response from the community or a Microsoft Support
> > > Engineer within 1 business day is acceptable. Please note that each
> > > follow
> > > up response may take approximately 2 business days as the support
> > > professional working with you may need further investigation to reach
> > > the
> > > most efficient resolution. The offering is not appropriate for
> > > situations
> > > that require urgent, real-time or phone-based interactions or complex
> > > project analysis and dump analysis issues. Issues of this nature are
> > > best
> > > handled working with a dedicated Microsoft Support Engineer by
> > > contacting
> > > Microsoft Customer Support Services (CSS) at
> > >http://msdn.microsoft.com/subscriptions/support/default.asp x.
> > > ==================== ===3D=
==================== =====3D=
==
> > > This posting is provided "AS IS" with no warranties, and confers no
> > > rights.- Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -
Re: dynamic compression iis 7
am 18.04.2008 17:19:23 von gary
What do you mean by "raw" http response. I'm looking at the "source" within
the browser.
"David Wang" wrote in message
news:d23276bd-3411-4eb9-838d-86a952486c6e@k37g2000hsf.google groups.com...
Compression does a LOT more than "remove mostly the white space".
Dynamic Compression is "dynamic", on the fly, so nothing will EVER
show up in the Temporary Compression folder. Static Compression items
will show up there -- you can treat that folder as a disk-based cache
for static compression results, and dynamic compression is not worth
caching since it can dynamically change.
IIS will NOT send back a compressed response UNLESS the client
indicates that it supports it, along with IIS being configured to send
compressed responses.
Dynamic compression is enabled on IIS7 by default, so I suspect you
are either using a client that is not asking for compressed content,
or you are not looking at the raw HTTP RESPONSE with the client.
Can you provide the raw HTTP REQUEST you are using which does not have
compressed response, and please verify that you are looking at raw
HTTP RESPONSE when checking if things are compressed.
//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//
On Apr 16, 6:49 am, "gary" wrote:
> according to this
> documenthttp://msdn2.microsoft.com/en-us/library/ms689496(VS .85).aspx
>
> the dynamicCompressionBeforeCache default is false, not true.
>
> Also, rather than edit the applicationHost.config file directly; do you
> have
> the appcmd(s) syntax for things i should try for the same results?
>
> one other thing, maybe i've got some confusion. I am looking for the
> compression results to remove mostly the white space from the html source
> returned to the browser...am i correct? Isn't that what the compression is
> supposed to do?
>
> Also some of my pages are html, but some are generated programaticly as
> aspx
> files. So whatever settings i make, they need to work for both.
>
> Thanks,
>
> Gary
>
> ""WenJun Zhang[msft]"" wrote in message
>
> news:l9MjTFinIHA.4932@TK2MSFTNGHUB02.phx.gbl...
>
>
>
> > Hi Gary,
>
> > Have you also set dynamicCompressionLevel and
> > dynamicCompressionBeforeCache?
>
> > dynamicCompressionLevel controls the CPU hit and algorithms used for
> > compression. The first algorithm is executed if the level is set from 0
> > to
> > 3, another from leve 4 to 9, and another at level 10.
>
> > When dynamicCompressionBeforeCache is set to false, IIS puts the
> > noncompressed response into output cache. Then every time that the
> > response
> > is requested, IIS dynamically compresses the cached response as it is
> > sent
> > to the client. When it's set to true, IIS dynamically compresses the
> > response the first time a request is made. The default value is true.
>
> > So you may change these 2 settings in applicationHost.config file and
> > test
> > again.
>
> > If still no avail, please update here. I will help review your config
> > file
> > to address what the problem is.
>
> > Have a great week.
>
> > Sincerely,
>
> > WenJun Zhang
>
> > Microsoft Online Community Support
>
> > Delighting our customers is our #1 priority. We welcome your comments
> > and
> > suggestions about how we can improve the support we provide to you.
> > Please
> > feel free to let my manager know what you think of the level of service
> > provided. You can send feedback directly to my manager at:
> > msd...@microsoft.com.
>
> > ==================================================
> > Get notification to my posts through email? Please refer to
> >http://msdn.microsoft.com/subscriptions/managednewsgroups/d efault.asp...
> > ications.
>
> > Note: The MSDN Managed Newsgroup support offering is for non-urgent
> > issues
> > where an initial response from the community or a Microsoft Support
> > Engineer within 1 business day is acceptable. Please note that each
> > follow
> > up response may take approximately 2 business days as the support
> > professional working with you may need further investigation to reach
> > the
> > most efficient resolution. The offering is not appropriate for
> > situations
> > that require urgent, real-time or phone-based interactions or complex
> > project analysis and dump analysis issues. Issues of this nature are
> > best
> > handled working with a dedicated Microsoft Support Engineer by
> > contacting
> > Microsoft Customer Support Services (CSS) at
> >http://msdn.microsoft.com/subscriptions/support/default.asp x.
> > ==================================================
> > This posting is provided "AS IS" with no warranties, and confers no
> > rights.- Hide quoted text -
>
> - Show quoted text -
Re: dynamic compression iis 7
am 18.04.2008 19:36:10 von gary
Thanks, I have learned something!
Do you know if iis7 has a compacting algorithm built in as well?
Did iis 6 have the compression?
"David Wang" wrote in message
news:27a96ded-05ce-49ae-b58f-b1acdc5c56c7@e67g2000hsa.google groups.com...
Compression is a part of content-encoding, and web browsers will only
show you the final data stream after all content-encoding, transfer-
encoding, and lower-layer transformations have been unwrapped. Thus,
you cannot use the web browser to validate compression.
The exact same logic applies to:
- SSL -- view->source doesn't show you the encrypted data
- Transfer-Encoding: chunked -- view->source doesn't show you the
chunked response entity
Compression does NOT alter your HTML content to strip out whitespace
and sending that altered HTML. That is not "compression" but rather
"compacting".
Compression does something better, which is to transform your HTML
content to something that usually takes far less bytes to transfer,
send that over the wire, and the remote user agent (i.e. browser)
knows how to decompress and retrieve the original HTML content, with
all the whitespaces losslessly preserved.
Of course, Compression depends on the remote user agent being able to
decompress, which may not be the case for mobile phones -- in which
case the "compacting" of whitespace is a possible alternative.
//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//
On Apr 17, 12:30 pm, "gary" wrote:
> i am using ie7 and am looking at the source generated when you select
> "view-> source" from the menu bar with ie 7
>
> "David Wang" wrote in message
>
> news:d23276bd-3411-4eb9-838d-86a952486c6e@k37g2000hsf.google groups.com...
> Compression does a LOT more than "remove mostly the white space".
>
> Dynamic Compression is "dynamic", on the fly, so nothing will EVER
> show up in the Temporary Compression folder. Static Compression items
> will show up there -- you can treat that folder as a disk-based cache
> for static compression results, and dynamic compression is not worth
> caching since it can dynamically change.
>
> IIS will NOT send back a compressed response UNLESS the client
> indicates that it supports it, along with IIS being configured to send
> compressed responses.
>
> Dynamic compression is enabled on IIS7 by default, so I suspect you
> are either using a client that is not asking for compressed content,
> or you are not looking at the raw HTTP RESPONSE with the client.
>
> Can you provide the raw HTTP REQUEST you are using which does not have
> compressed response, and please verify that you are looking at raw
> HTTP RESPONSE when checking if things are compressed.
>
> //Davidhttp://w3-4u.blogspot.comhttp://blogs.msdn.com/David. Wang
> //
>
> On Apr 16, 6:49 am, "gary" wrote:
>
>
>
> > according to this
> > documenthttp://msdn2.microsoft.com/en-us/library/ms689496(VS .85).aspx
>
> > the dynamicCompressionBeforeCache default is false, not true.
>
> > Also, rather than edit the applicationHost.config file directly; do you
> > have
> > the appcmd(s) syntax for things i should try for the same results?
>
> > one other thing, maybe i've got some confusion. I am looking for the
> > compression results to remove mostly the white space from the html
> > source
> > returned to the browser...am i correct? Isn't that what the compression
> > is
> > supposed to do?
>
> > Also some of my pages are html, but some are generated programaticly as
> > aspx
> > files. So whatever settings i make, they need to work for both.
>
> > Thanks,
>
> > Gary
>
> > ""WenJun Zhang[msft]"" wrote in message
>
> >news:l9MjTFinIHA.4932@TK2MSFTNGHUB02.phx.gbl...
>
> > > Hi Gary,
>
> > > Have you also set dynamicCompressionLevel and
> > > dynamicCompressionBeforeCache?
>
> > > dynamicCompressionLevel controls the CPU hit and algorithms used for
> > > compression. The first algorithm is executed if the level is set from
> > > 0
> > > to
> > > 3, another from leve 4 to 9, and another at level 10.
>
> > > When dynamicCompressionBeforeCache is set to false, IIS puts the
> > > noncompressed response into output cache. Then every time that the
> > > response
> > > is requested, IIS dynamically compresses the cached response as it is
> > > sent
> > > to the client. When it's set to true, IIS dynamically compresses the
> > > response the first time a request is made. The default value is true.
>
> > > So you may change these 2 settings in applicationHost.config file and
> > > test
> > > again.
>
> > > If still no avail, please update here. I will help review your config
> > > file
> > > to address what the problem is.
>
> > > Have a great week.
>
> > > Sincerely,
>
> > > WenJun Zhang
>
> > > Microsoft Online Community Support
>
> > > Delighting our customers is our #1 priority. We welcome your comments
> > > and
> > > suggestions about how we can improve the support we provide to you.
> > > Please
> > > feel free to let my manager know what you think of the level of
> > > service
> > > provided. You can send feedback directly to my manager at:
> > > msd...@microsoft.com.
>
> > > ==================================================
> > > Get notification to my posts through email? Please refer to
> > >http://msdn.microsoft.com/subscriptions/managednewsgroups/d efault.asp...
> > > ications.
>
> > > Note: The MSDN Managed Newsgroup support offering is for non-urgent
> > > issues
> > > where an initial response from the community or a Microsoft Support
> > > Engineer within 1 business day is acceptable. Please note that each
> > > follow
> > > up response may take approximately 2 business days as the support
> > > professional working with you may need further investigation to reach
> > > the
> > > most efficient resolution. The offering is not appropriate for
> > > situations
> > > that require urgent, real-time or phone-based interactions or complex
> > > project analysis and dump analysis issues. Issues of this nature are
> > > best
> > > handled working with a dedicated Microsoft Support Engineer by
> > > contacting
> > > Microsoft Customer Support Services (CSS) at
> > >http://msdn.microsoft.com/subscriptions/support/default.asp x.
> > > ==================================================
> > > This posting is provided "AS IS" with no warranties, and confers no
> > > rights.- Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -
Re: dynamic compression iis 7
am 19.04.2008 01:41:14 von David Wang
IIS 6/7 supports compression and ships with a configurable
implementation.
IIS also supports compacting but there is no shipping feature. People
tend do compacting with "source obfuscation" programs that take an
input website and produces an output website where all whitespace are
compacted, variable names in scripts shortened and obfuscated, etc. So
there is no need to waste CPU cycles for compacting -- the source HTML
is always compacted.
//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//
On Apr 18, 10:36=A0am, "gary" wrote:
> Thanks, I have learned something!
>
> Do you know if iis7 has a compacting algorithm built in as well?
>
> Did iis 6 have the compression?
>
> "David Wang" wrote in message
>
> news:27a96ded-05ce-49ae-b58f-b1acdc5c56c7@e67g2000hsa.google groups.com...
> Compression is a part of content-encoding, and web browsers will only
> show you the final data stream after all content-encoding, transfer-
> encoding, and lower-layer transformations have been unwrapped. Thus,
> you cannot use the web browser to validate compression.
>
> The exact same logic applies to:
> - SSL -- view->source doesn't show you the encrypted data
> - Transfer-Encoding: chunked -- view->source doesn't show you the
> chunked response entity
>
> Compression does NOT alter your HTML content to strip out whitespace
> and sending that altered HTML. That is not "compression" but rather
> "compacting".
>
> Compression does something better, which is to transform your HTML
> content to something that usually takes far less bytes to transfer,
> send that over the wire, and the remote user agent (i.e. browser)
> knows how to decompress and retrieve the original HTML content, with
> all the whitespaces losslessly preserved.
>
> Of course, Compression depends on the remote user agent being able to
> decompress, which may not be the case for mobile phones -- in which
> case the "compacting" of whitespace is a possible alternative.
>
> //Davidhttp://w3-4u.blogspot.comhttp://blogs.msdn.com/David. Wang
> //
>
> On Apr 17, 12:30 pm, "gary" wrote:
>
>
>
> > i am using ie7 and am looking at the source generated when you select
> > "view-> source" from the menu bar with ie 7
>
> > "David Wang" wrote in message
>
> >news:d23276bd-3411-4eb9-838d-86a952486c6e@k37g2000hsf.googl egroups.com...=
> > Compression does a LOT more than "remove mostly the white space".
>
> > Dynamic Compression is "dynamic", on the fly, so nothing will EVER
> > show up in the Temporary Compression folder. Static Compression items
> > will show up there -- you can treat that folder as a disk-based cache
> > for static compression results, and dynamic compression is not worth
> > caching since it can dynamically change.
>
> > IIS will NOT send back a compressed response UNLESS the client
> > indicates that it supports it, along with IIS being configured to send
> > compressed responses.
>
> > Dynamic compression is enabled on IIS7 by default, so I suspect you
> > are either using a client that is not asking for compressed content,
> > or you are not looking at the raw HTTP RESPONSE with the client.
>
> > Can you provide the raw HTTP REQUEST you are using which does not have
> > compressed response, and please verify that you are looking at raw
> > HTTP RESPONSE when checking if things are compressed.
>
> > //Davidhttp://w3-4u.blogspot.comhttp://blogs.msdn.com/David. Wang
> > //
>
> > On Apr 16, 6:49 am, "gary" wrote:
>
> > > according to this
> > > documenthttp://msdn2.microsoft.com/en-us/library/ms689496(VS .85).aspx
>
> > > the dynamicCompressionBeforeCache default is false, not true.
>
> > > Also, rather than edit the applicationHost.config file directly; do yo=
u
> > > have
> > > the appcmd(s) syntax for things i should try for the same results?
>
> > > one other thing, maybe i've got some confusion. I am looking for the
> > > compression results to remove mostly the white space from the html
> > > source
> > > returned to the browser...am i correct? Isn't that what the compressio=
n
> > > is
> > > supposed to do?
>
> > > Also some of my pages are html, but some are generated programaticly a=
s
> > > aspx
> > > files. So whatever settings i make, they need to work for both.
>
> > > Thanks,
>
> > > Gary
>
> > > ""WenJun Zhang[msft]"" wrote in message=
>
> > >news:l9MjTFinIHA.4932@TK2MSFTNGHUB02.phx.gbl...
>
> > > > Hi Gary,
>
> > > > Have you also set dynamicCompressionLevel and
> > > > dynamicCompressionBeforeCache?
>
> > > > dynamicCompressionLevel controls the CPU hit and algorithms used for=
> > > > compression. The first algorithm is executed if the level is set fro=
m
> > > > 0
> > > > to
> > > > 3, another from leve 4 to 9, and another at level 10.
>
> > > > When dynamicCompressionBeforeCache is set to false, IIS puts the
> > > > noncompressed response into output cache. Then every time that the
> > > > response
> > > > is requested, IIS dynamically compresses the cached response as it i=
s
> > > > sent
> > > > to the client. When it's set to true, IIS dynamically compresses the=
> > > > response the first time a request is made. The default value is true=
..
>
> > > > So you may change these 2 settings in applicationHost.config file an=
d
> > > > test
> > > > again.
>
> > > > If still no avail, please update here. I will help review your confi=
g
> > > > file
> > > > to address what the problem is.
>
> > > > Have a great week.
>
> > > > Sincerely,
>
> > > > WenJun Zhang
>
> > > > Microsoft Online Community Support
>
> > > > Delighting our customers is our #1 priority. We welcome your comment=
s
> > > > and
> > > > suggestions about how we can improve the support we provide to you.
> > > > Please
> > > > feel free to let my manager know what you think of the level of
> > > > service
> > > > provided. You can send feedback directly to my manager at:
> > > > msd...@microsoft.com.
>
> > > > ==================== ===
==================== =====3D=
===3D
> > > > Get notification to my posts through email? Please refer to
> > > >http://msdn.microsoft.com/subscriptions/managednewsgroups/d efault.asp=
....
> > > > ications.
>
> > > > Note: The MSDN Managed Newsgroup support offering is for non-urgent
> > > > issues
> > > > where an initial response from the community or a Microsoft Support
> > > > Engineer within 1 business day is acceptable. Please note that each
> > > > follow
> > > > up response may take approximately 2 business days as the support
> > > > professional working with you may need further investigation to reac=
h
> > > > the
> > > > most efficient resolution. The offering is not appropriate for
> > > > situations
> > > > that require urgent, real-time or phone-based interactions or comple=
x
> > > > project analysis and dump analysis issues. Issues of this nature are=
> > > > best
> > > > handled working with a dedicated Microsoft Support Engineer by
> > > > contacting
> > > > Microsoft Customer Support Services (CSS) at
> > > >http://msdn.microsoft.com/subscriptions/support/default.asp x.
> > > > ==================== ===
==================== =====3D=
===3D
> > > > This posting is provided "AS IS" with no warranties, and confers no
> > > > rights.- Hide quoted text -
>
> > > - Show quoted text -- Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -