Re: [Rails] in dev, how can I make assets/javascripts changes show up in browser (rails 3.2/chrome 21)

19 views
Skip to first unread message

Walter Lee Davis

unread,
Oct 14, 2013, 10:46:41 AM10/14/13
to rubyonra...@googlegroups.com
Is this while you are developing on localhost? Do you have the assets pipeline configured correctly in your development.rb environment file? It should be set to auto-recompile on each request. If Chrome is showing you this issue, try using Safari or Firefox and see if the problem travels -- it could be Rails, but it could just be your browser. See if there's a hidden Chrome option to disable cacheing for certain domains or globally. I have Firefox set to use zero disk and memory cache. Yes, it's slower for everything, but I don't have to hold down the Shift key and press Reload to force-refresh while making tiny changes to scripts either, and I don't use Firefox for daily Web driving anyway.

Walter

On Oct 14, 2013, at 10:28 AM, G-money wrote:

> Sometimes -- like now -- my favorite dev browser, Chrome (v.21), will not show changes made in my Rails 3.2 assets/javascripts files. Is this a Chrome thing, or how can I get the changes to show up immediately upon page refresh?
>
> Thanks,
>
> G
>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
> To post to this group, send email to rubyonra...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/40be0a1e-3658-43b9-a143-2cf9e65a4369%40googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

Tamara Temple

unread,
Oct 14, 2013, 8:46:19 PM10/14/13
to rubyonra...@googlegroups.com

On Oct 14, 2013, at 9:28 AM, G-money <gallagh...@gmail.com> wrote:

> Sometimes -- like now -- my favorite dev browser, Chrome (v.21), will not show changes made in my Rails 3.2 assets/javascripts files. Is this a Chrome thing, or how can I get the changes to show up immediately upon page refresh?

In Chrome, I turn off caching in the DevTools (it means you need to keep them running, I think.) There's probably an easier way to get to them, but once I have the DevTools up, I click on the little sprocket in the lower right corner and I can then configure the browser.

I don't know if this will fix your issue, but at least you can be sure it isn't browser caching that's the problem. Hope this helps….

Reply all
Reply to author
Forward
0 new messages