Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

3.1.1rc1: Sass helper image-url for scss uses digest:ed filenames even if disabled #3112

Closed
avocade opened this Issue · 3 comments

2 participants

@avocade

Even when I set config.assets.digest = false in development.rb the scss compiler uses the digest:ed filenames:

style.css.scss

...
background: image-url('bg_control_nav.png')
...

Resulting in http://0.0.0.0:3000/assets/bg_control_nav-47a53da539be2469967cce13849b56b3.png in compiled css, and error when image can't be found.

I'm not sure if this is expected behavior?

@spohlenz

Try clearing out your cache:

rake tmp:cache:clear
@avocade

Tried that too, and deleted the entire tmp/ folder.

But it's still got to do something with the cache; I modified the images slightly in Preview, which should give them new digests, but when reloading the generated css file still used the same urls as before.

SOLVED: I noticed the stylesheet returned a 304 in the Chrome web inspector, so edited it a bit which must have released the browser cache. Now when it regenerated from scss it didn't use the digest, so I guess it was cached before when I ran the server in production mode locally...

A bit of a tricky situation, since I supposed double-reloading in Chrome would fully delete the cache...

@avocade

Closing issue, nothing to do with rails. But something to be aware of (as always with caching, it can make you tear your hair out).

@avocade avocade closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.