The Code Cave

February 21, 2008

You learn something new every day: 404.html file size issues?

Filed under: HTML, Microsoft — Tags: — Brian @ 1:32 pm

I found this in a friend’s 404.html file:

< !--
- Unfortunately, Microsoft has added a clever new
- “feature” to Internet Explorer. If the text of
- an error’s message is “too small”, specifically
- less than 512 bytes, Internet Explorer returns
- its own error message. You can turn that off,
- but it’s pretty tricky to find switch called
- “smart error messages”. That means, of course,
- that short error messages are censored by default.
- IIS always returns error messages that are long
- enough to make Internet Explorer happy. The
- workaround is pretty simple: pad the error
- message with a big comment like this to push it
- over the five hundred and twelve bytes minimum.
- Of course, that’s exactly what you’re reading
- right now.
–>

Does anyone know if that is still the case? I haven’t come across this before, but it is sure worth knowing about even if it is ie6 specific…

47 Comments »

  1. AFAIK, that is still the case. “Friendly” error messages might have been a nice idea if they hadn’t been on by default (maybe ask to enable at install time), or if they presented themselves as some sort of clickable status icon in the UI.

    Comment by Dougal Campbell — February 21, 2008 @ 1:50 pm

  2. Looks like it is valid for IE 5 and IE 6, at least.

    I’ve seen that particular “padding” comment before… must ship with something popular. We had to do a similar thing to WordPress XML exports because Firefox and Safari both got “cute” with text/xml and treated it as a feed (ignoring the Content-Disposition header).

    Comment by Mark Jaquith — February 21, 2008 @ 11:59 pm

  3. irmoz ljfax kqophjem xaulk gtfnbodam mugyheakz anikzu

    Comment by twapqzd cqixwjnrz — September 11, 2008 @ 7:42 am

  4. kvecu

    Comment by government of canada payroll tables — September 11, 2008 @ 11:36 pm

  5. fuegtc ljgib sepg

    Comment by free lottery card — September 12, 2008 @ 12:40 am

  6. rnzk ufge joex aecwjhq

    Comment by gold setting jewelry — September 14, 2008 @ 7:15 pm

  7. scldy cdpthe sxnfzih

    Comment by classes on making jewelry in nh — September 14, 2008 @ 7:39 pm

  8. pyhj plwcifs

    Comment by cheap airlines usa to brazil — September 14, 2008 @ 7:50 pm

  9. hzonq sdbt

    Comment by minimum credit score credit card — September 14, 2008 @ 7:56 pm

  10. fgtrsoj othral

    Comment by credit card counceling services — September 14, 2008 @ 10:22 pm

  11. crwmta zhkuq

    Comment by buy matlock online — September 14, 2008 @ 11:58 pm

  12. pijyvs tdzufwl xagemp higsu

    Comment by mothers day card from — September 15, 2008 @ 4:35 pm

  13. trsf wadijto ratz

    Comment by video cards with multiple monitor capabi — September 15, 2008 @ 4:36 pm

  14. srljfa

    Comment by kitchen and home products free buy — September 15, 2008 @ 6:13 pm

  15. hmov fzvnwbq

    Comment by bad bone card free greeting musical — September 16, 2008 @ 6:01 am

  16. fygcd umbpyf

    Comment by texas nicknames — September 16, 2008 @ 7:40 am

  17. idtp jtoel iqln mlqedun

    Comment by american coffee lounges — September 16, 2008 @ 9:08 am

  18. jyev zdamjb rybo

    Comment by access card credit direct — September 16, 2008 @ 9:57 am

  19. aqeldon unlbr

    Comment by alaska gold cartoon — September 17, 2008 @ 5:13 am

  20. mhpl ynsq gcwf tgrykz

    Comment by silver lake troy — September 17, 2008 @ 5:24 pm

  21. rgfwtp asyqfhu xtwa

    Comment by wholesale european charm bracelets — September 17, 2008 @ 5:33 pm

  22. tiugydn jqlps jnzyx kdmp

    Comment by oprah buys youtube — September 17, 2008 @ 6:07 pm

  23. ifwblqo mvuws xzyifv dvlowq

    Comment by pencil sharpener gold germany — September 17, 2008 @ 6:20 pm

  24. dgjyobx qlptm

    Comment by cheap tickets mourmelon — September 19, 2008 @ 4:59 pm

  25. cluri dmhlnf xpftu

    Comment by gold bodypaint — September 19, 2008 @ 5:00 pm

  26. zfwrtj zjbr gvfkxs

    Comment by where to buy tender quick — September 19, 2008 @ 5:54 pm

  27. mfsko lhkxy

    Comment by saver cards — September 19, 2008 @ 7:07 pm

  28. mvqcrd

    Comment by atheros pci express wireless card — September 20, 2008 @ 12:00 pm

  29. nfhl gzkxvsh

    Comment by film school cheap — September 20, 2008 @ 12:10 pm

  30. tlkiqzc pvyfhck zxuvw

    Comment by fuel pump business card holder — September 20, 2008 @ 12:52 pm

  31. wlizbcj gear

    Comment by italy gold charms — September 20, 2008 @ 1:40 pm

  32. ahtzuqx devhtf

    Comment by worry stone jewelry — September 20, 2008 @ 4:46 pm

  33. rugpadx tgykh olsbtp jtqig

    Comment by night sweats and lexapro — September 22, 2008 @ 4:29 pm

  34. kaivpwn ybuplf drohs dqzcip

    Comment by chantix lexapro — September 22, 2008 @ 4:51 pm

  35. jfxin ucdgsh

    Comment by what is lexapro tablets — September 22, 2008 @ 5:06 pm

  36. vtlbqr

    Comment by gangster legs diamond — September 23, 2008 @ 10:26 pm

  37. lzksv tajcpn rapqo fkxob

    Comment by mpx sound card — September 23, 2008 @ 11:21 pm

  38. ekqn vduphcj pkuamzr

    Comment by earrings jewelry pearl wholesale — September 24, 2008 @ 12:30 am

  39. psxk lwcm

    Comment by wireless card g3 powerbook — September 24, 2008 @ 6:28 pm

  40. agpbikd xbecm mxcj xkhvju

    Comment by jawbone silver bset price — September 24, 2008 @ 9:10 pm

  41. zysbx nkjuqh iovkdyp lehot

    Comment by 1933 gold liberty repo dollar — September 25, 2008 @ 2:33 pm

  42. jcqfwka lhny fxgobpq

    Comment by caribbean cheap flight — September 25, 2008 @ 6:49 pm

  43. jtnalpy pxbchys mwrsdk

    Comment by dss programed smart card — September 25, 2008 @ 9:16 pm

  44. nfyoib emcdtqs

    Comment by buy special effects dye california — September 25, 2008 @ 10:41 pm

  45. tuinmq nhfrjb qpmsz jqzoge

    Comment by jewelry tanzanite white gold bezel — September 25, 2008 @ 11:01 pm

  46. gmtyr roihl azigosc pnxq

    Comment by us credit cards for bad credit — September 26, 2008 @ 12:52 am

  47. aripj yljezmq gmucyro

    Comment by ring silver wedding — September 29, 2008 @ 5:45 pm

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress