Welcome to HostingForumz.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

Why won't IE won't cache compressed responses?

 
   Web Hosting Problem Solving Community! (Home) -> IIS RSS
Related Topics:
Form responses do not write to database - I created a form in FrontPage 2002 that I could post on the Web so that users could answer a and so that I could compile their responses into an Access database. When I tested it the form seemed to work. I received a page with..

ISAPI filter for monitoring/saving http responses? - Hi all, I'm looking for an ISAPI filter that can capture IIS responses so that I can either see them in real time or lets me save them out to files and see them later. If it's for IIS 6 it'd be even better. Thanks for any help. Jiho

text in .vb file is getting compressed - Hello, Each time I save my code behind file the text gets and all white space is removed and lines become joined together and thus it doesn't work properly. the file looks like the code below If I try to re-format it goes back to how..

Http connection compressed by IIS - Hi, My server is running on Win2000, from what I read so far, my IIS should be 5.0. I have a quite a few 1) How do I find out what version my IIS actually is? 2) Does IIS 5.0 allow option to to compress http If yes, how? 3) If..

Blank compressed pages when the page is not - I am getting blank pages when the page is not, I have a 4 windows 2003 servers farm, it happens only in two of them. Also some times they merge the content of the pages (i.e. the default page get the content of other) I don´t have other..
Next:  IIS: A deployed web aspx page does not display response over th..  
Author Message
Marc J. Cawood

External


Since: Feb 15, 2008
Posts: 10



(Msg. 1) Posted: Fri Feb 22, 2008 8:27 am
Post subject: Why won't IE won't cache compressed responses?
Archived from groups: microsoft>public>inetserver>iis (more info?)

Can anyone explain why a browser _shouldn't_ cache compressed files?
Can we change this from the IIS side?

I've read (vaguely) that IE won't cache compressed responses and I
have also witnessed this behaviour with xsl files which are defined as
static cache files in the metabase. Why is this double (network)
performance boost not allowed?

The file is in the browser cache (temporary internet files) but
fiddler shows that IE requests the file again and again and the
timestamp (Last Checked) is always updated.

The response header is:
HTTP/1.1 200 OK
Cache-Control: max-age=2419200
Content-Length: 393
Content-Type: text/xml
Content-Encoding: gzip
Last-Modified: Thu, 15 Dec 2005 12:20:47 GMT
Accept-Ranges: bytes
ETag: "80795dfa711c61:425"
Vary: Accept-Encoding
Server: Microsoft-IIS/6.0
WWW-Authenticate: Negotiate


<IIsCompressionScheme Location ="/LM/W3SVC/Filters/Compression/
deflate"
HcCompressionDll="%windir%\system32\inetsrv\gzip.dll"
HcCreateFlags="0"
HcDoDynamicCompression="TRUE"
HcDoOnDemandCompression="TRUE"
HcDoStaticCompression="FALSE"
HcDynamicCompressionLevel="9"
HcFileExtensions="htm
css
html
vbi
js
xsl"
HcOnDemandCompLevel="10"
HcPriority="1"
HcScriptFileExtensions="asp
dll
exe"
>
<IIsCompressionSchemes Location ="/LM/W3SVC/Filters/Compression/
Parameters"
HcCacheControlHeader="max-age=86400"
HcCompressionBufferSize="8192"
HcCompressionDirectory="%windir%\IIS Temporary Compressed Files"
HcDoDiskSpaceLimiting="TRUE"
HcDoDynamicCompression="FALSE"
HcDoOnDemandCompression="TRUE"
HcDoStaticCompression="TRUE"
HcExpiresHeader="Wed, 01 Jan 1997 12:00:00 GMT"
HcFilesDeletedPerDiskFree="256"
HcIoBufferSize="8192"
HcMaxDiskSpaceUsage="524288000"
HcMaxQueueLength="1000"
HcMinFileSizeForComp="1"
HcNoCompressionForHttp10="TRUE"
HcNoCompressionForProxies="TRUE"
HcNoCompressionForRange="FALSE"
HcSendCacheHeaders="FALSE"
>

 >> Stay informed about: Why won't IE won't cache compressed responses? 
Back to top
Login to vote
"Lognoul, Marc

External


Since: Feb 05, 2008
Posts: 21



(Msg. 2) Posted: Fri Feb 22, 2008 5:04 pm
Post subject: Re: Why won't IE won't cache compressed responses? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I don't get the while point but in short:
- Server (IIs) compresses the response (not IE since IE sends requests)
- By design, IE does not compress requests (as far as I know)
- One ff the of the symptoms you describe is related to client-side caching,
not compression.

Please find more info here:
http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library...S/5bce4
http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library...S/5bce4
http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library...S/0fc16


Marc


"Marc J. Cawood" <cawoodm.DeleteThis@gmail.com> wrote in message
news:f887758b-43ba-4c9b-82f7-b83ad33b22a5@60g2000hsy.googlegroups.com...
> Can anyone explain why a browser _shouldn't_ cache compressed files?
> Can we change this from the IIS side?
>
> I've read (vaguely) that IE won't cache compressed responses and I
> have also witnessed this behaviour with xsl files which are defined as
> static cache files in the metabase. Why is this double (network)
> performance boost not allowed?
>
> The file is in the browser cache (temporary internet files) but
> fiddler shows that IE requests the file again and again and the
> timestamp (Last Checked) is always updated.
>
> The response header is:
> HTTP/1.1 200 OK
> Cache-Control: max-age=2419200
> Content-Length: 393
> Content-Type: text/xml
> Content-Encoding: gzip
> Last-Modified: Thu, 15 Dec 2005 12:20:47 GMT
> Accept-Ranges: bytes
> ETag: "80795dfa711c61:425"
> Vary: Accept-Encoding
> Server: Microsoft-IIS/6.0
> WWW-Authenticate: Negotiate
>
>
> <IIsCompressionScheme Location ="/LM/W3SVC/Filters/Compression/
> deflate"
> HcCompressionDll="%windir%\system32\inetsrv\gzip.dll"
> HcCreateFlags="0"
> HcDoDynamicCompression="TRUE"
> HcDoOnDemandCompression="TRUE"
> HcDoStaticCompression="FALSE"
> HcDynamicCompressionLevel="9"
> HcFileExtensions="htm
> css
> html
> vbi
> js
> xsl"
> HcOnDemandCompLevel="10"
> HcPriority="1"
> HcScriptFileExtensions="asp
> dll
> exe"
>>
> <IIsCompressionSchemes Location ="/LM/W3SVC/Filters/Compression/
> Parameters"
> HcCacheControlHeader="max-age=86400"
> HcCompressionBufferSize="8192"
> HcCompressionDirectory="%windir%\IIS Temporary Compressed Files"
> HcDoDiskSpaceLimiting="TRUE"
> HcDoDynamicCompression="FALSE"
> HcDoOnDemandCompression="TRUE"
> HcDoStaticCompression="TRUE"
> HcExpiresHeader="Wed, 01 Jan 1997 12:00:00 GMT"
> HcFilesDeletedPerDiskFree="256"
> HcIoBufferSize="8192"
> HcMaxDiskSpaceUsage="524288000"
> HcMaxQueueLength="1000"
> HcMinFileSizeForComp="1"
> HcNoCompressionForHttp10="TRUE"
> HcNoCompressionForProxies="TRUE"
> HcNoCompressionForRange="FALSE"
> HcSendCacheHeaders="FALSE"
>>
>

 >> Stay informed about: Why won't IE won't cache compressed responses? 
Back to top
Login to vote
Anthony Jones

External


Since: Jan 28, 2006
Posts: 170



(Msg. 3) Posted: Fri Feb 22, 2008 5:04 pm
Post subject: Re: Why won't IE won't cache compressed responses? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Marc J. Cawood" <cawoodm DeleteThis @gmail.com> wrote in message
news:f887758b-43ba-4c9b-82f7-b83ad33b22a5@60g2000hsy.googlegroups.com...
> Can anyone explain why a browser _shouldn't_ cache compressed files?
> Can we change this from the IIS side?
>
> I've read (vaguely) that IE won't cache compressed responses and I
> have also witnessed this behaviour with xsl files which are defined as
> static cache files in the metabase. Why is this double (network)
> performance boost not allowed?
>
> The file is in the browser cache (temporary internet files) but
> fiddler shows that IE requests the file again and again and the
> timestamp (Last Checked) is always updated.
>
> The response header is:
> HTTP/1.1 200 OK
> Cache-Control: max-age=2419200
> Content-Length: 393
> Content-Type: text/xml
> Content-Encoding: gzip
> Last-Modified: Thu, 15 Dec 2005 12:20:47 GMT
> Accept-Ranges: bytes
> ETag: "80795dfa711c61:425"
> Vary: Accept-Encoding
> Server: Microsoft-IIS/6.0
> WWW-Authenticate: Negotiate
>


It would have helped if you supplied the request headers.
My guess is that the request headers contains a pragma:no-cache and probably
no If-Modified-Since or If-None-Match headers either.

MSXML will be the culprit. MSXML3 (the version of msxml used by IE) by
default has its ForcedResync option set to true. This means that MSXML
doesn't trust any cache and requires the XML to be resent, it won't even
send headers which give the origin server an option to send a 304.

In JScript use this code to turn it off.

oDOM.setProperty("ForcedResync", false);

note this a global option. The next DOM you instance will still have this
option set to false.

However you mentioned XSL. If you are using the document() function to
fetch additional XML DOMs you're out of luck. The document() function seems
unaffected by the change in ForcedResync setting and will force a resync
anyway. Very annoying.

--
Anthony Jones - MVP ASP/ASP.NET
 >> Stay informed about: Why won't IE won't cache compressed responses? 
Back to top
Login to vote
David Wang

External


Since: Nov 14, 2007
Posts: 357



(Msg. 4) Posted: Sat Mar 01, 2008 3:10 am
Post subject: Re: Why won't IE won't cache compressed responses? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

You are complaining about a client-side behavior with no server-side
control.

IIS *does* cache static files which are compressed.

There is very little that IIS can do to *force* clients to cache. IIS
can only ensure clients never cache its responses.

Remember, caching is an optimization requiring cooperation between the
client and server to achieve.


//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//






On Feb 22, 8:27 am, "Marc J. Cawood" <cawo... DeleteThis @gmail.com> wrote:
> Can anyone explain why a browser _shouldn't_ cache compressed files?
> Can we change this from the IIS side?
>
> I've read (vaguely) that IE won't cache compressed responses and I
> have also witnessed this behaviour with xsl files which are defined as
> static cache files in the metabase. Why is this double (network)
> performance boost not allowed?
>
> The file is in the browser cache (temporary internet files) but
> fiddler shows that IE requests the file again and again and the
> timestamp (Last Checked) is always updated.
>
> The response header is:
> HTTP/1.1 200 OK
> Cache-Control: max-age=2419200
> Content-Length: 393
> Content-Type: text/xml
> Content-Encoding: gzip
> Last-Modified: Thu, 15 Dec 2005 12:20:47 GMT
> Accept-Ranges: bytes
> ETag: "80795dfa711c61:425"
> Vary: Accept-Encoding
> Server: Microsoft-IIS/6.0
> WWW-Authenticate: Negotiate
>
> <IIsCompressionScheme        Location ="/LM/W3SVC/Filters/Compression/
> deflate"
>  HcCompressionDll="%windir%\system32\inetsrv\gzip.dll"
>  HcCreateFlags="0"
>  HcDoDynamicCompression="TRUE"
>  HcDoOnDemandCompression="TRUE"
>  HcDoStaticCompression="FALSE"
>  HcDynamicCompressionLevel="9"
>  HcFileExtensions="htm
>  css
>  html
>  vbi
>  js
>  xsl"
>  HcOnDemandCompLevel="10"
>  HcPriority="1"
>  HcScriptFileExtensions="asp
>  dll
>  exe"
>
> <IIsCompressionSchemes       Location ="/LM/W3SVC/Filters/Compression/
> Parameters"
>  HcCacheControlHeader="max-age=86400"
>  HcCompressionBufferSize="8192"
>  HcCompressionDirectory="%windir%\IIS Temporary Compressed Files"
>  HcDoDiskSpaceLimiting="TRUE"
>  HcDoDynamicCompression="FALSE"
>  HcDoOnDemandCompression="TRUE"
>  HcDoStaticCompression="TRUE"
>  HcExpiresHeader="Wed, 01 Jan 1997 12:00:00 GMT"
>  HcFilesDeletedPerDiskFree="256"
>  HcIoBufferSize="8192"
>  HcMaxDiskSpaceUsage="524288000"
>  HcMaxQueueLength="1000"
>  HcMinFileSizeForComp="1"
>  HcNoCompressionForHttp10="TRUE"
>  HcNoCompressionForProxies="TRUE"
>  HcNoCompressionForRange="FALSE"
>  HcSendCacheHeaders="FALSE"
>
>
>
> - Hide quoted text -
>
> - Show quoted text -
 >> Stay informed about: Why won't IE won't cache compressed responses? 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting Problem Solving Community! (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]