Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-21320

Theme CSS gzip encoding broken for Firefox

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.0
    • 2.0
    • Themes
    • None
    • Server: PHP 5.3.0 (cli) (built: Oct 23 2009 14:22:42)
      Desktop: Firefox 3.5.7 (on both Ubuntu 9.10 and Windows XP)
    • MOODLE_20_STABLE
    • MOODLE_20_STABLE

      Theme gzip compression was breaking CSS in Firefox.

      It seems that no Content-Encoding header is being sent to the browser.

      Following change to function send_cached_css() in /theme/styles.php sends header, resulting in CSS being applied to pages correctly. Similar change should probably be made to /theme/yui_combo.php as that also sends garbage to the browser.

      if (!min_enable_zlib_compression())

      { header('Content-Length: '.filesize($csspath)); }

      else

      { header('Content-Encoding: gzip'); }

            skodak Petr Skoda
            pholden Paul Holden
            Nobody Nobody (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.