Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Rails 3 assets caching issues

#4138

When you specify :cache option in stylesheet_link_tag or javascript_include_tag, Rails 3 master (Mar 10) creates a cached file in development environment. However, that option should work, by default, only in production.

Reproduced by DefV on #rails-contrib.

Reported by beawesomeinstead · March 10th, 2010 @ 05:32 AM

State: committed
Milestone: 3.0.2
Assigned to: Carl Lerche Carl Lerche
Importance: Low

Activity

  1. Maximilian Schulz
    Maximilian Schulz

    I can confirm this. And it is a rather annoying bug during development ;)

    March 10th, 2010 @ 10:04 AM

  2. Maximilian Schulz
    Maximilian Schulz

    Oh, I forgot to mention that this is not only valid for asset caching, but localization files in yml format don't get reloaded as well.

    March 10th, 2010 @ 10:06 AM

  3. Denis Odorcic
    Denis Odorcic

    I've attached a patch which fixes the asset_tag_helpers (javascript_include_tag and stylesheet_link_tag) by using config.perform_caching instead of ActionController::Base.perform_caching which wasn't being set for some reason. Tests pass. I didn't look into the other stuff like localization files but this could probably get someone started in the right direction I hope?

    March 11th, 2010 @ 05:53 AM

  4. José Valim
    José Valim
    • Assigned user changed from Yehuda Katz (wycats) to Carl Lerche
    • Milestone cleared.

    March 12th, 2010 @ 06:42 PM

  5. Carl Lerche
    Carl Lerche

    The patch looks good. Thanks

    March 12th, 2010 @ 07:51 PM

  6. José Valim
    José Valim
    • State changed from new to committed

    March 12th, 2010 @ 08:15 PM

  7. Jeremy Kemper
    Jeremy Kemper
    • Milestone set to 3.0.2
    • Importance changed from to Low

    October 15th, 2010 @ 11:01 PM

  8. mikle
    mikle

    michael jordan basketball shoes Jumpman23 Jordan,new jordan releases 2009 authentic retro jordan,jordan shoes for girls Authentic Retro Jordan Shoes,new michael jordan shoes Jordans For Sale,Buy Jordan sneakers Online,michael jordan sneakers Authentic Space Jams,cheap air force ones Authentic Jordans,michael jordan pictures Authentic Retro Jordan Shoes,custom air force ones Cheap Jordan Retro Shoes,buy wholesale products from Chinese Jumpman23 shoes .jordan air force ones Authentic Cheap Jordans,jordan shoes release dates Authentic Air Jordan Shoes,new jordan releases Authentic Air Jordans Authentic Jordan Air Shoes Air Retro Jordans Shoes.Air Jordan Sneakers.buy air jordans online.Cheap Nike Dunk Kicks.

    January 21st, 2011 @ 07:15 AM

  9. bingbing
  10. bingbing