andrewdavey/cassette — Issue #183: css url expand using _ for . in debug mode
Author: cliechty
Created: 2012-02-16 22:27:54+00:00
State: open

Version 1.1.0-beta2

I found that running our site with debug enabled images defined in css using url are not loading with a 404 error.
If I turn off debug then the images load properly. The difference I have found is that with debug enabled the . before the file extension is being replaced with an underscore.

url created with debug enabled:
`http://localhost/OE/_cassette/file/Content/images/top_9db8d19b539a59b45ea081c8bf92e7e8a949c4d3_jpg`

url created with debug disabled (working):
`http://localhost/OE/_cassette/file/Content/images/top_9db8d19b539a59b45ea081c8bf92e7e8a949c4d3.jpg`

Our configuration:

```c#
public class CassetteConfiguration : ICassetteConfiguration
{
public void Configure(BundleCollection bundles, CassetteSettings settings)
{
// Configure your bundles here...
// Please read http://getcassette.net/documentation/configuration
bundles.Add("Content/css", bundle => bundle.PageLocation = "site");
bundles.Add("Content/themes/base", bundle => bundle.PageLocation = "jquery.ui");

bundles.Add("Scripts");
bundles.Add("Content/js");
bundles.AddPerIndividualFile("Content/js/per-page",
customizeBundle: bundle => bundle.PageLocation = "BodyLast");
}
}
```