cassette
cassette copied to clipboard
URLModifier doesn't modify image paths
A URLModifier, created to prepend the application name, works for CSS e.g. /AppName-cassette.axd/stylesheet/oItKqvmnTHqsg6uNMNCi0CpuC30=/MyBundle but not for images e.g. /AppName-cassette.axd/file/Images/MyImage-8cee044cff92fad4bcf7d0631fa5cb9da6e58a86.png
Cassette returns the image if you remove the prefix and try it in a browser i.e. /cassette.axd/file/Images/MyImage-8cee044cff92fad4bcf7d0631fa5cb9da6e58a86.png
Raised in Google group here: https://groups.google.com/forum/?hl=en#!topic/cassette/-dPdiHSApnw
and here's a repro https://github.com/robinminto/CassetteUrlModifierIssueRepro
I am having this same issue, except that my images are trying to be loaded from this:
/AppName/cassette.axd/asset/Stylesheets/cassette.axd/file/Stylesheets/images/image-0160a106e2dfc13a1abf2be571b7ee0b750a291e.png
Two sets of cassette prefixes AND the app name are showing up.
This seems to be because the leading "/" is missing from my css image paths.