Changeset 423 for devel/_icons
- Timestamp:
- 07/03/06 00:04:53 (2 years ago)
- Files:
-
- devel/_icons/icon.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
devel/_icons/icon.php
r421 r423 36 36 $filepath = $CFG->dirroot.'_icons/data/default.png'; 37 37 $mimetype = 'image/png'; 38 header("Cache-Control: public");39 38 } else { 40 39 $mimetype = mimeinfo('type', $file->filename); 41 // "Cache-Control: private" to allow a user's browser to cache the file, but not a shared proxy42 // Also to override PHP's default "DON'T EVER CACHE THIS EVER" header43 header("Cache-Control: private");44 40 } 41 45 42 46 43 // Then output some appropriate headers and send the file data! … … 63 60 } 64 61 62 // user icons are public 63 header("Cache-Control: public"); 64 65 65 if (!empty($phpthumb)) { 66 66 // let phpthumb manipulate the image
