We updated a time before our ASP.NET legacy web application to use .NET Framework 4.0. No any problems there. Last sprint, we implemented new module to rewrite SEO optimized URLs. But, because we want use URLs without any file and extension (for example instead of http://server/Some-Nice-URL/file.aspx only http://server/Some-Nice-URL/) we were forced to set 'runAllManagedModulesForAllRequests' to 'true', because without this was the ASP.NET session not available.
We have now the problem with static compression and GZIP. After couple of postbacks we "lost" the CSS and/or Javascripts. If I access the CSS or Javascript file directly, I get sometimes browser message 'Content Encoding Error', sometimes is the file delivered correctly. In Fiddler is length of CSS or Javascript files sometime incorrect but the in HTTPCompression is shown GZIP Encoding and "Response is encoded and my need to be decoded before inspection". After click "The magic number in GZip header is not correct". If we set 'runAllManagedModulesForAllRequests' or 'doStaticCompression' to 'false', no any problems with static compression and "lost" CSS and/or Javascript files.
Any idea?