Skip to content
Snippets Groups Projects
Unverified Commit baeee3c2 authored by James Gilliland's avatar James Gilliland Committed by Mark Dorison
Browse files

Issue #3372105 by g_miric, neclimdul, kala4ek, andypost, Heine, apotek,...

Issue #3372105 by g_miric, neclimdul, kala4ek, andypost, Heine, apotek, markdorison: Stage file proxy attempts to fetch aggregated JS/CSS
parent 7779fa5c
Branches
Tags 2.1.1
No related merge requests found
Pipeline #15503 passed with warnings
......@@ -153,6 +153,13 @@ class StageFileProxySubscriber implements EventSubscriberInterface {
foreach ($paths as $relative_path) {
$fetch_path = $relative_path;
// Don't touch CSS and JS aggregation. 'css/' and 'js/' are hard coded to
// match route definitions.
// @see \Drupal\system\Routing\AssetRoutes
if (str_starts_with($relative_path, 'css/') || str_starts_with($relative_path, 'js/')) {
return;
}
// Is this imagecache? Request the root file and let imagecache resize.
// We check this first so locally added files have precedence.
$original_path = $this->manager->styleOriginalPath($relative_path, TRUE);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment