Ejemplo n.º 1
0
 /**
  * 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;
 }
Ejemplo n.º 3
0
 /**
  * Get cache directory thats specifically for js files
  *
  * @return string
  */
 public static function getCacheDir()
 {
     return parent::getCacheDir() . '/js';
 }