ICEfaces
  1. ICEfaces
  2. ICE-3469

CSS images are not being cached when using IE 6

    Details

    • Workaround Exists:
      Yes
    • Workaround Description:
      Hide
      1) Use relative (background-image:url(../images/test.png)) rather than absolute references (background-image:url(/images/test.png)).

      2) Add the following JavaScript to the head of your page:

      try {
        document.execCommand("BackgroundImageCache", false, true);
      } catch(err) {}
      Show
      1) Use relative (background-image:url(../images/test.png)) rather than absolute references (background-image:url(/images/test.png)). 2) Add the following JavaScript to the head of your page: try {   document.execCommand("BackgroundImageCache", false, true); } catch(err) {}

      Description

      When using IE 6, images used in CSS styles may not be cached. For example:

      background-image:url(/images/test.png)

      may cause IE 6 to repeatedly load the resource.

        Activity

        Hide
        Deryk Sinotte added a comment -

        Assigning to Mircea to consider implementing the second work-around as part of the ICEfaces framework.

        Show
        Deryk Sinotte added a comment - Assigning to Mircea to consider implementing the second work-around as part of the ICEfaces framework.
        Hide
        Mircea Toma added a comment -

        Applied IE6 specific fix.

        Show
        Mircea Toma added a comment - Applied IE6 specific fix.

          People

          • Assignee:
            Unassigned
            Reporter:
            Deryk Sinotte
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: