/** * Set last modified header to response * * @param sfCombineCombiner $combiner * @return void */ protected function _setLastModifiedHeader(sfCombineCombiner $combiner) { if (sfConfig::get('app_sfCombinePlugin_set_last_modified_header', false)) { $timestamp = $combiner->getLastModifiedTimestamp(); if ($timestamp) { $this->getResponse()->setHttpHeader('Last-Modified', $this->getResponse()->getDate($timestamp)); } } }
/** * @see parent */ protected function _generateOutput($minify = false, $minifySkipSuffixes = array(), $minifySkip = array()) { $output = parent::_generateOutput($minify, $minifySkipSuffixes, $minifySkip); $output = self::fixImports($output, $this->getConfigOption('prepend_imports', true), $this->getConfigOption('prepend_imports_warning', '')); $output = self::fixCharset($output, $this->getConfigOption('keep_charset', false)); return $output; }
/** * Get cache directory thats specifically for js files * * @return string */ public static function getCacheDir() { return parent::getCacheDir() . '/js'; }