andrewdavey/cassette — Issue #123: Path match issue in css url('') parser
Author: hempels
Created: 2011-12-30 20:51:34+00:00
State: open

Provided the following content in file ```~/Content/background.css```:

.class {
background: url('/Content/background.png');
}

Cassette will look for the file ~/Content/Content/background.png, determine it does not exist, and create a new asset reference pointing to: ~/Content/Content/background.png. This also has the effect of expiring the cache on every request, which is how I discovered the problem.

I suspect the best fix would be to modify ```GetImageFilename``` (in ExpandCssUrlsAssetTransformer) to recognize host-relative paths.