mwrock/RequestReduce — Issue #98: dynamically generated href in css link omitted from minification
Author: omegaluz
Created: 2012-01-07 16:45:13+00:00
State: open

I am dynamically generating a link in my Layout.cshtml file. This link is omitted from the minification:

@{

if (!string.IsNullOrEmpty(ViewBag.Area))
{
@:
}
}

The final url is the one that is omitted. It would generate a url like ~/Areas/Admin/Styles/Admin.css

It is completely unminified and not bundled with other requests.

POST LogIn	302 Found	localhost:2999	125 B	::1:2999
45ms
GET Default	302 Found	localhost:2999	136 B	::1:2999
14ms
GET Home	200 OK	localhost:2999	28.3 KB	::1:2999
278ms
GET 409224f2bc897540fd...stReducedStyle.css	200 OK	localhost:2999	15.2 KB
11ms
GET Admin.css	304 Not Modified	localhost:2999	1.3 KB	::1:2999
2ms
GET 073196cc11067c40dd...stReducedScript.js	200 OK	localhost:2999	183.6 KB
19ms
GET CompanyLogo?applic...82&originTypeID=18	200 OK	localhost:2999	7 KB	::1:2999
12ms
GET raphael-min.js	200 OK	localhost:2999	27.3 KB
1ms
GET raphael-svg-import.js	200 OK	localhost:2999	1.3 KB
1ms
GET Details?id=2&id2=3&_=1325954647669	200 OK	localhost:2999	7.9 KB	::1:2999
39ms
GET Home#shadowgrad7	200 OK	localhost:2999	28.3 KB	::1:2999
229ms
GET AutoComplete?_=1325954648213	200 OK	localhost:2999	19.4 KB	::1:2999
241ms
12 requests	319.6 KB	(228.6 KB from cache)
1.45s (onload: 1s)