Drop the file extension from the combiner URL

This causes too many issues with Nginx and php server instances.
This commit is contained in:
Sam Georges 2014-05-16 14:29:02 +10:00
parent 64cfb7eb87
commit 0185244710
3 changed files with 4 additions and 9 deletions

View File

@ -11,12 +11,6 @@
##
# RewriteBase /
##
## Handle resource requests
##
RewriteCond %{REQUEST_URI} combine/.*(.css|.js)
RewriteRule ^ index.php [L]
##
## Black list protected files
##

View File

@ -171,10 +171,10 @@ class CombineAssets
$version = $combiner->getLastModified();
$cacheInfo = [
'output' => $cacheId.'-'.$version.'.'.$extension,
'output' => $cacheId.'-'.$version,
'version' => $version,
'files' => $assets,
'path' => $this->path
'files' => $assets,
'path' => $this->path
];
$this->putCache($cacheId, $cacheInfo);

View File

@ -632,6 +632,7 @@ class Controller extends BaseController
/**
* Combines JavaScript and StyleSheet assets.
* @param string $name Combined file code
* @return string Combined content.
*/
public function combine($name)