Re: HTTP Compression issues with IIS 5

From: Tony Cooke (TCooke_at_elders.com.au)
Date: 09/22/04


Date: Wed, 22 Sep 2004 10:07:19 +0930

Hi WenJun.

My comments are below.

Thank you for replying to my thread.

All the best,
Tony

> Hi Tony,

Hi again.

> Please check out the following article. It's generally hitting the
> main cause of users experiencing cached content behavior when using
> HTTP compression.
>
> 319384 Pages Do Not Expire as Expected After Web Site Content Change
> http://support.microsoft.com/?id=319384
>
> To prevent dynamic content from being cached, we'd either disable
> HTTP Compression on dynamic pages - uncheck the 'Compress application
> files' checkbox or modify the HcCacheControlHeader metabase property.
>
> Follow the KB instructed, you can decrease HcCacheControlHeader to a
> small value or just set it to "max-age=0" to test. Except for the
> ADSUTIL script, using MetaEdit to open your metabase could be a more
> clear way to do this:

I have implemented the "fix" in http://support.microsoft.com/?id=319384 as
you requested and that has fixed the caching problem. I will leave
"max-age=0" as I don't believe that we will want the ASP page's HTML to be
cached client side. One question with this though, does this mean that any
related images that are embeded in the page are not cached as well?
I have installed MetaEdit 2.2 as well and that works very well. I wish I had
known about this before.

> After making the change of this property, you can run iisreset
> command to restart IIS services. Some additional points are:
>
> 1) In a site properties->HTTP Headers tab, enable Content Expiration
> and select 'Expire Immediately'. This will allow IIS set 'no-cache'
> in the cache control header of HTTP response and send it to client
> browsers.

Won't this expire all content on the client immediately including images,
javascript files, etc?
This could defeat the purpose of having compressed content if we have to
resend everything every time.

> 2) After making all these changes at server-side, a current cached
> file may still remain in client Internet Temp folder, means IE may
> keep using the local copy and doesn't send a new request to IIS until
> 24 hours later. Therefore it may be necessary to clear Temporary
> Internet files in IE->Internet Options.

OK.

> For the PDF being truncated behavior and problematic streamed doc,
> can you send some sample files to me? I'd like to reproduce the
> issues at my side and perform some deeper researching on it. I did
> see few cases of PDF file, sometimes the problem is on Adobe Reader's
> OLE control(hosted by IE as the actual web client) but not lies on
> IIS server. If you simply download the PDF file instead of opening
> them in browser(right-click to save as), will the download be
> successful? You can send files to my email address directly:
> v-wzhang@online.microsoft.com (Please remove online.)

OK. I will send the files directly to the above address (minus "online")

> For your last question, to a high volume web site, HTTP compression
> costs CPU and response time to save network bandwidth. So in case a
> site has enough bandwidth, enable compression doesn't make any sense.
> The following White paper contains some useful info to evaluate its
> effect:
> Web and Application Server Infrastructure - Performance and
> Scalability
> http://www.microsoft.com/technet/prodtechnol/windowsserver2003/technol
> ogies/webapp/iis/iis6perf.mspx

True but the true test of a product under real life conditions, especially
your own product, is to use it on your own site. Surely these problems
wouldn't exist if Microsoft used it at least on a sub-section of their site.
Also, the page loads would be considerably faster if it was implemented,
especially on some of Microsoft's large text based areas. How can Microsoft
improve on something and promote it if they don't use it themself?

> Hope some info above can help. Please feel free to let me know if you
> meet any problem.
> Best regards,

Thank you again. Your help in this matter is greatly appreciated.

> WenJun Zhang
> Microsoft Online Support
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
> Get Secure! - www.microsoft.com/security
>



Relevant Pages

  • Re: Connect Computer Problem at 2 Customer Sites
    ... I understand this issue to be: the client ... please restart the IIS service. ... join the domain has got the valid IP address and DNS server address in the ... Microsoft Online Newsgroup Support ...
    (microsoft.public.windows.server.sbs)
  • Re: Windows 2000 IIS Strange Issue
    ... I have a very strange issue that just came up with a client. ... Does anyone know how to get IIS to tell me where the issue ... Microsoft MVP - Directory Services ... Instead of the website you're using, I suggest to use OEx (Outlook Express ...
    (microsoft.public.windows.server.networking)
  • HTTP Compression on IIS 6.0
    ... We have enabled Http Compression for .js files on IIS 6.0. ... client who hits our server with one client IP address. ...
    (microsoft.public.windows.server.security)
  • Industry perception of IIS
    ... Can anyone point out some articles offering support for ... the continued use of IIS? ... Non Microsoft is what is being ... I have a client here who wants to have it ...
    (microsoft.public.inetserver.iis.security)
  • Re: Back button problem
    ... gzip is disable) get another entry in the history. ... > Server.Transfer does nothing on the client. ... >> It's works great if compression in IIS is disabled but if compression is ...
    (microsoft.public.dotnet.framework.aspnet)