Changeset 555 for trunk/lib/CSS.inc.php
- Timestamp:
- Dec 15, 2015 10:29:47 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/CSS.inc.php
r554 r555 145 145 } 146 146 147 header('Content-Type: text/css; charset=' . $this->getParam('character_set')); 148 header(sprintf('Last-Modified: %s GMT', gmdate('D, d M Y H:i:s', $latest_mtime), null)); 147 149 if ($this->getParam('cache_enable')) { 148 header(sprintf('Last-Modified: %s GMT', gmdate('D, d M Y H:i:s', $latest_mtime), null));149 150 header(sprintf('Cache-Control: public, max-age=%s', $this->getParam('cache_seconds'))); 151 header(sprintf('Expires: %s GMT', gmdate('D, d M Y H:i:s', $latest_mtime + $this->getParam('cache_seconds')))); 150 152 header('Pragma: public'); 153 header('Vary: Accept-Encoding'); 151 154 } else { 155 header('Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0'); 152 156 header('Expires: -1'); 153 157 header('Pragma: no-cache'); 154 header('Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0');155 158 } 156 header('Content-Type: text/css; charset=' . $this->getParam('character_set'));157 159 } 158 160
Note: See TracChangeset
for help on using the changeset viewer.