Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 157 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

In IE9 on my work PC, this is what I get when browsing StackOverflow, or any StackExchange site:

Unstyled StackOverflow Home Page

FireFox is fine. IE9 at home is also fine. IE9 at work was fine, until a few weeks ago.

I've tried deleting or resetting everything in IE9 via Cog Icon -> Internet Options -> General -> Delete, and Cog Icon -> Internet Options -> Advanced -> Reset, but no change.

I've tried accessing the link to the stylesheet that is in the homepage - In FireFox it comes back fine. In IE9 it comes back as garbage, but it looks like it's just the CSS file gzipped. However, when I unzip it using the following F# script:

open System
open System.IO
open System.IO.Compression

let readGzip path = 
    seq { use stream = File.Open(path, FileMode.Open)
          use gZipStream = new GZipStream(stream, CompressionMode.Decompress)
          use reader = new StreamReader(gZipStream)
          while not (reader.EndOfStream) do yield reader.ReadLine() }

let write (path:string) (lines:string seq) =
    use writer = new StreamWriter(path)
    lines |> Seq.iter (writer.WriteLine)

let desktopPath = Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory)
Path.Combine(desktopPath, "all.css")
|> readGzip
|> write (Path.Combine(desktopPath, "allunzipped.css"))

The CSS comes back fine at the beginning of the file, up to the kbd style. But then it goes a bit strange.

CSS Comparison

As far as I know my decompression code is OK. Any ideas?

share|improve this question
Probably same issue with this -… – YOU Jun 17 '11 at 7:06
@YOU - yep, it certainly seems similar. Gonna grab fiddler now and have a play. – Alex Humphrey Jun 17 '11 at 7:14
Can you upload that gzipped file somewhere if you don't mind, I liked to test unpacking here. – YOU Jun 17 '11 at 7:34
@YOU - try this – Alex Humphrey Jun 17 '11 at 7:44
@YOU - I downloaded Fiddler2 in the end and applying the 'Remove All Encodings' rule got it working in IE9. Don't know if I'll be able to fix the root cause though. – Alex Humphrey Jun 17 '11 at 7:46
I see, and the file is somehow broken and I can't unpack it, and filesize is 11,688 and actual working one is 11,683 bytes. – YOU Jun 17 '11 at 8:01
btw how did you save the file? Save As or copy pasted to text editors? all of the NULL characters became spaces in your all.css gzipped file. – YOU Jun 17 '11 at 8:06
@YOU I typed in the link in IE9, up popped notepad.exe containing the compressed file, and I just did File-> Save As with default settings (ANSI encoding, so I'm guessing even if it changed it, it shouldn't have added anything?). – Alex Humphrey Jun 17 '11 at 8:11
I see, I also think "Save As" should be fine. – YOU Jun 17 '11 at 8:22

You must log in to answer this question.

Browse other questions tagged .