Make Asset Pipeline compatible with Chrome DevTools Autosave doesn’t play nice with Asset Pipeline.

The culprit of the problem is in the asset’s URLs. I cannot decipher a file path by its URL. For instance, /assets/main.css?body=1 could be either app/assets/stylesheets/main.css, lib/assets/stylesheets/main.css or vendor/stylesheets/main.css.

To fix it, we could either make URLs match their file path:


or introduce source-path query parameter:


Any help would be good.