Caching may break relative paths in your merged stylesheet

Posted Over 12 years ago. Visible to the public.

If you turn on stylesheet caching, it might happen that stylesheets from different locations with different relative pathes will be put together to one big stylesheet.

This stylesheet then resides in /stylesheets but still holds the old pathes, which aren't valid anymore. This leads to the effect that images are displayed on your local development machine (where caching is turned off automatically) but not on the server.

To fix this, either:
^

  • Move all stylesheets to the same folder
  • or have one cache per folder
Last edit
About 12 years ago
Keywords
rails, css
License
Source code in this card is licensed under the MIT License.
Posted to makandra dev (2011-12-01 16:54)