Drop the file extension from the combiner URL
This causes too many issues with Nginx and php server instances.
This commit is contained in:
parent
64cfb7eb87
commit
0185244710
|
|
@ -11,12 +11,6 @@
|
|||
##
|
||||
# RewriteBase /
|
||||
|
||||
##
|
||||
## Handle resource requests
|
||||
##
|
||||
RewriteCond %{REQUEST_URI} combine/.*(.css|.js)
|
||||
RewriteRule ^ index.php [L]
|
||||
|
||||
##
|
||||
## Black list protected files
|
||||
##
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue