Randomly Receiving "ERR_CONTENT_DECODING_FAILED"

Aug 2, 2011 at 2:39 PM

I recently installed Combres (via NuGet) into a .NET 4.0 WebForms application that I created.  I updated combres.xml with a couple of resource sets and included the resource sets into a master page per the directions in the Quick Start Guide.

However, loading the resources will randomly fail.  If I press F5 and reload the page ten times (waiting for the page to load fully in-between refreshes), it will fail about 30% of the time.  Using the Network panel in Chrome, I've determined that I'm receiving "ERR_CONTENT_DECODING_FAILED" (Code 330) when the browser attempts to load the resources (both CSS and JS).

However, if I disable compression, it works without any issues at all.  Did I miss a configuration step or something?  I'd really like to re-enable compression since that's the primary reason that I'm using it.

Coordinator
Aug 18, 2011 at 6:17 AM

Does it happen with other browsers?  Looks Chrome has an issue:

  • http://www.google.com/support/forum/p/Chrome/thread?tid=3388bd392b939f43&hl=en
  • http://superuser.com/questions/172951/chrome-error-330-neterr-content-decoding-failed

Can you send me more info (i.e. which CSS/JS you're requesting, Combres configuration...) to reproduce on my workstation?

Aug 19, 2011 at 9:55 PM
I found that article as well. Unfortunately, the issue was occurring in multiple browsers. The only way that I was able to resolve it was disabling compression.

We are using it with an EPiServer CMS 6 R2 site running in IIS 7. (This utilizes ASP.NET WebForms.)

Regarding the CSS/JSS we were compressing, are you asking for the files themselves?

The configuration we were using was the absolute default that you get when installing via NuGet.

Please let me know if you'd like additional information.

On Thu, Aug 18, 2011 at 1:17 AM, buunguyen <notifications@codeplex.com> wrote:

From: buunguyen

Does it happen with other browsers? Looks Chrome has an issue:

Can you send me more info (i.e. which CSS/JS you're requesting, Combres configuration...) to reproduce on my workstation?

Read the full discussion online.

To add a post to this discussion, reply to this email (combres@discussions.codeplex.com)

To start a new discussion for this project, email combres@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe on CodePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at CodePlex.com


Coordinator
Aug 22, 2011 at 5:49 AM

Hi, yes, I'm looking for things that allow me to reproduce the bug.  If you can't send over the CSS/JS of your project, can you try using the sample projects bundled with Combres source and see if you have the same issue?  

Aug 22, 2011 at 7:53 PM
Edited Aug 22, 2011 at 7:55 PM

Our "combres.xml" configuration file is below.

 

<?xml version="1.0" encoding="utf-8" ?>
<!--
  This file contains basic settings needed for most web apps.
  For full Combres settings (with explanation), refer to the sample definition file: combres_full_with_annotation.xml
  Also, refer to Combres' documentation: http://combres.codeplex.com/documentation	
-->
<combres xmlns='urn:combres'>
  <filters>
    <filter type="Combres.Filters.FixUrlsInCssFilter, Combres" />
  </filters>
  <resourceSets url="~/combres.axd"
                defaultDuration="30"
                defaultVersion="auto"
                defaultDebugEnabled="auto"
                >

    <!-- Top Level Resources -->
    <resourceSet name="appStylesheets" type="css">
      <resource path="~/public/stylesheets/global/application.css" />
    </resourceSet>

    <resourceSet name="appJavascripts" type="js">
      <resource path="~/public/javascripts/vendor/jquery-1.6.2.min.js" />
    </resourceSet>

  </resourceSets>
</combres>

The JQuery file is simply the JQuery include.  You should be able to grab that anywhere.  (Version is probably not important.)  Our "application.css" file is below.

/* normalize.css 2011-07-12T10:51 UTC � http://github.com/necolas/normalize.css */article,aside,details,figcaption,figure,footer,header,hgroup,nav,section{display:block}audio[controls],canvas,video{display:inline-block;*display:inline;*zoom:1}html{font-size:100%;overflow-y:scroll;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}body{margin:0}body,button,input,select,textarea{font-family:sans-serif}a{color:#00e}a:visited{color:#551a8b}a:focus{outline:thin dotted}a:hover,a:active{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:bold}blockquote{margin:1em 40px}dfn{font-style:italic}mark{background:#ff0;color:#000}pre,code,kbd,samp{font-family:monospace, monospace;_font-family:'courier new', monospace;font-size:1em}pre{white-space:pre;white-space:pre-wrap;word-wrap:break-word}q{quotes:none}q:before,q:after{content:'';content:none}small{font-size:75%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}ul,ol{margin:1em 0;padding:0 0 0 40px}dd{margin:0 0 0 40px}nav ul,nav ol{list-style:none}img{border:0;-ms-interpolation-mode:bicubic}svg:not(:root){overflow:hidden}figure{margin:0}form{margin:0}fieldset{margin:0 2px 2px 0;padding:0 0.625em 0.75em 0.25em;border:none}legend{border:0;*margin-left:-7px}button,input,select,textarea{font-size:100%;margin:0;vertical-align:baseline;*vertical-align:middle}button,input{line-height:normal;*overflow:visible}table button,table input{*overflow:auto}button,html input[type="button"],input[type="reset"],input[type="submit"]{cursor:pointer;-webkit-appearance:button}input[type="checkbox"],input[type="radio"]{box-sizing:border-box}input[type="search"]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}input[type="search"]::-webkit-search-decoration{-webkit-appearance:none}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}textarea{overflow:auto;vertical-align:top}table{border-collapse:collapse;border-spacing:0}@font-face{font-family:'Arvo';src:url("../../fonts/arvo-regular/arvo-regular-webfont.eot");src:url("../../fonts/arvo-regular/arvo-regular-webfont.eot?#iefix") format("embedded-opentype"),url("../../fonts/arvo-regular/arvo-regular-webfont.woff") format("woff"),url("../../fonts/arvo-regular/arvo-regular-webfont.ttf") format("truetype"),url("../../fonts/arvo-regular/arvo-regular-webfont.svg#ArvoRegular") format("svg");font-weight:normal;font-style:normal}@font-face{font-family:'ArvoItalic';src:url("../../fonts/arvo-bold-italic/arvo-bolditalic-webfont.eot");src:url("../../fonts/arvo-bold-italic/arvo-bolditalic-webfont.eot?#iefix") format("embedded-opentype"),url("../../fonts/arvo-bold-italic/arvo-bolditalic-webfont.woff") format("woff"),url("../../fonts/arvo-bold-italic/arvo-bolditalic-webfont.ttf") format("truetype"),url("../../fonts/arvo-bold-italic/arvo-bolditalic-webfont.svg#ArvoItalic") format("svg");font-weight:normal;font-style:normal}/* Museo 300 Regular
 *! A font by Jos Buivenga 
 *! (exljbris) -> www.exljbris.com */@font-face{font-family:'MuseoReg';src:url("../../fonts/museo-300-regular/museo300-regular-webfont.eot");src:url("../../fonts/museo-300-regular/museo300-regular-webfont.eot?#iefix") format("embedded-opentype"),url("../../fonts/museo-300-regular/museo300-regular-webfont.woff") format("woff"),url("../../fonts/museo-300-regular/museo300-regular-webfont.ttf") format("truetype"),url("../../fonts/museo-300-regular/museo300-regular-webfont.svg#Museo300") format("svg");font-weight:normal;font-style:normal}/* Museo 300 Sans 
 *! A font by Jos Buivenga 
 *! (exljbris) -> www.exljbris.com */@font-face{font-family:'MuseoSansLight';src:url("../../fonts/museo-300-sans/museo300-sans-webfont.eot");src:url("../../fonts/museo-300-sans/museo300-sans-webfont.eot?#iefix") format("embedded-opentype"),url("../../fonts/museo-300-sans/museo300-sans-webfont.woff") format("woff"),url("../../fonts/museo-300-sans/museo300-sans-webfont.ttf") format("truetype"),url("../../fonts/museo-300-sans/museo300-sans-webfont.svg#MuseoSans-300") format("svg");font-weight:normal;font-style:normal}/* Museo 500 Medium
 *! A font by Jos Buivenga 
 *! (exljbris) -> www.exljbris.com */@font-face{font-family:'MuseoMed';src:url("../../fonts/museo-500-medium/museo500-regular-webfont.eot");src:url("../../fonts/museo-500-medium/museo500-regular-webfont.eot?#iefix") format("embedded-opentype"),url("../../fonts/museo-500-medium/museo500-regular-webfont.woff") format("woff"),url("../../fonts/museo-500-medium/museo500-regular-webfont.ttf") format("truetype"),url("../../fonts/museo-500-medium/museo500-regular-webfont.svg#Museo500") format("svg");font-weight:normal;font-style:normal}/* Museo 700 Bold 
 *! A font by Jos Buivenga 
 *! (exljbris) -> www.exljbris.com */@font-face{font-family:'MuseoBold';src:url("../../fonts/museo-700-bold/museo700-regular-webfont.eot");src:url("../../fonts/museo-700-bold/museo700-regular-webfont.eot?#iefix") format("embedded-opentype"),url("../../fonts/museo-700-bold/museo700-regular-webfont.woff") format("woff"),url("../../fonts/museo-700-bold/museo700-regular-webfont.ttf") format("truetype"),url("../../fonts/museo-700-bold/museo700-regular-webfont.svg#Museo700") format("svg");font-weight:normal;font-style:normal}/* Museo 700 Sans Bold
 *! A font by Jos Buivenga 
 *! (exljbris) -> www.exljbris.com */@font-face{font-family:'MuseoSansBold';src:url("../../fonts/museo-700-sans/museo700-sans-webfont.eot");src:url("../../fonts/museo-700-sans/museo700-sans-webfont.eot?#iefix") format("embedded-opentype"),url("../../fonts/museo-700-sans/museo700-sans-webfont.woff") format("woff"),url("../../fonts/museo-700-sans/museo700-sans-webfont.ttf") format("truetype"),url("../../fonts/museo-700-sans/museo700-sans-webfont.svg#MuseoSans-700") format("svg");font-weight:normal;font-style:normal}/* Museo 700 Sans Bold Italic
 *! A font by Jos Buivenga 
 *! (exljbris) -> www.exljbris.com */@font-face{font-family:'MuseoSansBoldItalic';src:url("../../fonts/museo-700-sans-italic/museo700-sansitalic-webfont.eot");src:url("../../fonts/museo-700-sans-italic/museo700-sansitalic-webfont.eot?#iefix") format("embedded-opentype"),url("../../fonts/museo-700-sans-italic/museo700-sansitalic-webfont.woff") format("woff"),url("../../fonts/museo-700-sans-italic/museo700-sansitalic-webfont.ttf") format("truetype"),url("../../fonts/museo-700-sans-italic/museo700-sansitalic-webfont.svg#MuseoSans-700Italic") format("svg");font-weight:normal;font-style:normal}@font-face{font-family:'ShadowsHandwritten';src:url("../../fonts/shadows-into-light/shadowsintolight-webfont.eot");src:url("../../fonts/shadows-into-light/shadowsintolight-webfont.eot?#iefix") format("embedded-opentype"),url("../../fonts/shadows-into-light/shadowsintolight-webfont.woff") format("woff"),url("../../fonts/shadows-into-light/shadowsintolight-webfont.ttf") format("truetype"),url("../../fonts/shadows-into-light/shadowsintolight-webfont.svg#ShadowsIntoLightRegular") format("svg");font-weight:normal;font-style:normal}.arvo{font-family:"Arvo",serif}.arvoitalic{font-family:"ArvoItalic",Georgia,serif}.museoreg{font-family:"MuseoReg",Helvetica,Arial,sans-serif}.museomed{font-family:"MuseoMed",Helvetica,Arial,sans-serif}.museobold{font-family:"MuseoBold",Helvetica,Arial,sans-serif}.museosansbold{font-family:"MuseoSansBold",Helvetica,Arial,sans-serif}.museosansbolditalic{font-family:"MuseoSansBoldItalic",Helvetica,Arial,sans-serif}.museosanslight{font-family:"MuseoSansLight",Helvetica,Arial,sans-serif}.shadowshandwritten{font-family:"ShadowsHandwritten",Georgia,serif}.ie6 .navigation ul,.ie7 .navigation ul{padding-top:20px}.ie6 .navigation .nav-social-share .share-twitter,.ie7 .navigation .nav-social-share .share-twitter{padding-bottom:0px;margin-bottom:5px}.ie6 .navigation .nav-store .go,.ie7 .navigation .nav-store .go{border:1px solid #F9DDBC;padding-top:0;padding-bottom:0;position:relative;top:-1px}html,body{background:#f9f7ed url(../../images/global/woodgrain.jpg) 0 0;font-family:arial, helvetica, sans-serif;color:#6e4939;height:100%;line-height:1;-webkit-font-smoothing:antialiased}.crazy-line{background:transparent url(../../images/global/orange_bar.png) 0 0 repeat-x;display:block;width:100%;height:5px;position:absolute;top:0;left:0;z-index:9000}.super-container{position:relative;width:1145px;margin:0 auto}.tango-tile{background:url(../../images/global/bg_tango_tile.png) 0 0 repeat-y;margin-left:20px;width:1115px;overflow:hidden}.tango-down{background:url(../../images/global/bg_tango_down.png) 0 0 no-repeat;width:1115px;height:40px;margin-left:20px}.tango-clear{overflow:hidden}.navigation{height:700px;width:250px;padding-top:20px;padding-left:5px;position:absolute;top:0;left:0;background:url(../../images/global/primary_nav_bg.png) 0 -6px no-repeat}.navigation li,.navigation a,.navigation a:hover{text-shadow:1px 1px #eee}.navigation li{font-family:"Arvo",serif;color:#6e4939;font-size:1.1em;overflow:hidden;display:block;list-style:none}.navigation a{color:#6e4939;text-decoration:none}.navigation a:hover{color:#5b8a32}.navigation .nav-promo,.navigation .nav-menu,.navigation .nav-club,.navigation .nav-store{padding-left:10px}.navigation .nav-promo,.navigation .nav-menu,.navigation .nav-club{height:35px;padding-top:10px}.navigation .nav-menu{padding-top:8px;height:37px}.navigation .nav-menu span{font-size:1.4em;color:#c78d73}.navigation .nav-club{padding-top:15px;height:30px}.navigation .nav-store{padding-top:15px;height:59px}.navigation .nav-store p{margin:0 0 6px 0}.navigation .nav-store .zip,.navigation .nav-store .go{font-size:.5em;color:#fba449;background-color:#ffffff;border:1px solid #f9ddbc;padding:2px 5px}.navigation .nav-store .placeholder{font-size:.5em;color:#fba449;padding:4px 5px}.navigation .nav-store .zip{width:80px}.navigation .nav-store .zip::-webkit-input-placeholder{color:#fba449}.navigation .nav-store .zip::-moz-placeholder{color:#fba449}.navigation .nav-store .go{margin-left:5px}.navigation .nav-brand{padding:30px 0 0;height:130px}.navigation .nav-brand a{display:block}.navigation .nav-giftcard{background:url(../../images/global/primary_nav_icons.png) -11px 6px no-repeat;font-size:.75em;padding-left:47px;padding-top:18px;height:52px;width:130px;line-height:1.8em}.navigation .nav-social-share{padding-top:10px;height:170px;overflow:hidden}.navigation .nav-social-share .share-facebook,.navigation .nav-social-share .share-twitter,.navigation .nav-social-share .share-btn{display:block;background:url(../../images/global/primary_nav_icons.png) -10px -6px no-repeat}.navigation .nav-social-share .share-facebook,.navigation .nav-social-share .share-btn{font-size:.75em;height:30px;padding:10px 0 0 40px}.navigation .nav-social-share .share-facebook{height:23px;background-position:-306px -7px}.navigation .nav-social-share .share-twitter{width:120px;line-height:1.5em;padding:5px 0 10px 40px;background-position:-608px -7px}.navigation .nav-social-share .share-twitter a{color:#5b8a32}.navigation .nav-social-share .share-twitter a:hover{text-decoration:underline}.navigation .nav-social-share .share-btn{background-position:-908px -7px}.navigation .nav-social-share .share-twitter{font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;font-size:.6em}.navigation .active a{color:#5b8a32}.navigation .active a span{color:#5b8a32}.tango-tile .menu{width:200px;padding-top:690px}.tango-tile .content{position:relative}.tango-tile .content .inner-content{margin-left:30px;width:860px}.footer{margin-top:40px;clear:both;padding:0 60px}.footer h5{display:table;font-family:"Arvo",serif;font-size:1.1em;line-height:1.4em;font-weight:normal;color:#5d724a;overflow:hidden;margin:0 auto 30px}.ie7 .footer{zoom:1;display:inline}.footer h5 p,.footer h5 .icon{float:left}.footer h5 p{margin:0 12px}.footer h5 .icon{display:block;width:15px;padding-top:10px;height:15px;background:url(../../images/global/ico_leafs.png) 0 7px no-repeat}.footer .footer-navigation{display:block;height:65px;background:url(../../images/global/bg_footer.png) 0 0 no-repeat;padding-top:48px;overflow:hidden}.footer .footer-navigation ul{overflow:hidden}.footer .footer-navigation li{float:left;list-style:none;margin-right:8px}.footer .footer-navigation a{color:#5d724a;text-decoration:none;font-size:.75em;padding-right:12px;font-family:"MuseoReg",Helvetica,Arial,sans-serif}.footer .footer-navigation a:hover{text-decoration:underline}.footer .footer-navigation .left-nav{float:left;padding-left:130px}.footer .footer-navigation .left-nav li{background:url(../../images/global/bg_footer_dash_left.png) center right no-repeat}.footer .footer-navigation .right-nav{float:right;padding-right:60px}.footer .footer-navigation .right-nav li{background:url(../../images/global/bg_footer_dash_right.png) center right no-repeat}.footer .footer-navigation .right-nav .dqcom{background-position:100% 4px}.footer .footer-navigation .logo-dq,.footer .footer-navigation .logo-kk{text-indent:-9999px;display:block;background:url(../../images/global/ico_footer_branding.png) 0 0 no-repeat}.footer .footer-navigation .logo-dq{width:40px;height:25px}.footer .footer-navigation .logo-kk{width:100px;height:25px;background-position:0 -295px}.footer-navigation .left-nav li.last,.footer-navigation .right-nav li.last{background:none}.nav-social-share iframe{height:35px}.header{background:url(../../images/global/bg_header.png) 10px -2px no-repeat;overflow:hidden;width:900px;height:111px;margin-left:12px}.header .page-heading{padding-left:25px;text-shadow:1px 1px #fff;margin:22px 0 0 0;font-size:2.125em;color:#5b8a32;font-family:"Arvo",serif;font-weight:normal;clear:both}.header ol{margin:8px 0 0 28px;padding:0;overflow:hidden}.header ol li{list-style-type:none;float:left;color:#f7793f;padding-right:13px;margin-right:8px;background:url(../../images/global/bg_header_dash.png) 100% 2px no-repeat}.header .last{background:none}.header li a{font-family:"Arvo",serif;padding-bottom:10px;color:#f7793f;display:block;text-decoration:none;font-size:.9em;line-height:1.1em;text-shadow:0 0 transparent}.header .active a{background:url(../../images/global/bg_black_underline.png) 0 12px no-repeat;color:#5b8a32}.header a:hover{background:url(../../images/global/bg_black_underline.png) 0 12px no-repeat}.large-heading{color:#5b8a32;font-family:"MuseoSansLight",Helvetica,Arial,sans-serif;font-weight:normal;font-size:1.3em;padding-bottom:0px}.inner-content p{font-size:.8em;line-height:1.5em}table{width:100%;font-size:.7em}table th,table td{text-align:right}table thead tr th{padding-bottom:8px}table tbody tr{background-color:#fefdfb}table tbody td{padding:3px 0px 3px 5px;border-bottom:3px solid #fbf9f3}table .primary-name{color:#f7793f;text-transform:uppercase;text-align:left}table .primary-cell{text-align:left}.selected-events{overflow:hidden}.selected-events .date{float:left;width:110px;margin-right:10px}.selected-events .date .icon{padding-left:12px}.selected-events .date .date-info{background:url(../../images/partybag/date-side-label.png) 0 2px no-repeat;padding-left:12px}.selected-events .date .then{background-position:0 -199px}.selected-events .date h4{color:#55b958;margin:10px 0 11px 0;font-family:"Arvo",serif;font-weight:normal;font-size:1.4em}.selected-events .date strong{font-family:"Arvo",serif;font-weight:normal;font-size:.75em;line-height:1.3em}.selected-events .then{margin-right:0;background-position:0 -140px}.page-stamp{position:absolute;top:10px;right:40px;z-index:100}.column{float:left}

Note that the above CSS uses webfonts, so it may not work for you.  It was happening with several CSS files, so I doubt it is unique to the CSS above.  I would try it would just a plain CSS file in EPiServer if you were looking to replicate.