Changeset 662

Show
Ignore:
Timestamp:
10/22/06 00:19:52 (2 years ago)
Author:
sven
Message:

icons&files: kill some unnecessary Vary headers

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • devel/_files/download.php

    r655 r662  
    4848                // partly because it's pointless, but mainly because some browsers 
    4949                // are thick. 
    50                 if (preg_match('/^application.*zip$/', $mimetype)) { 
     50                if (preg_match('#^(application.*zip|image/(png|jpeg|gif))$#', $mimetype)) { 
    5151                    @apache_setenv('no-gzip', '1'); 
    5252                } 
  • devel/_files/icon.php

    r654 r662  
    2020            require_once($CFG->dirroot . 'lib/filelib.php'); 
    2121            require_once($CFG->dirroot . 'lib/iconslib.php'); 
     22             
     23            // images most likely don't want compressing, and this will kill the Vary header 
     24            @apache_setenv('no-gzip', '1'); 
    2225             
    2326            if ($file->access == 'PUBLIC') { 
  • devel/_icons/icon.php

    r654 r662  
    6262} 
    6363 
     64// images most likely don't want compressing, and this will kill the Vary header 
     65@apache_setenv('no-gzip', '1'); 
     66 
    6467// user icons are public 
    6568header("Pragma: public");