Hi, Why do I have ?1208641118 after my resources in production ? img alt="Collapse" src="/images/collapse.gif?1208641118" I''am sure the site is in production mode. Thanks for your help, Mickael. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Jul 20, 10:46 am, Mickael Faivre-Macon <rails-mailing-l...@andreas- s.net> wrote:> Hi, > > Why do I have ?1208641118 after my resources in production ? > img alt="Collapse" src="/images/collapse.gif?1208641118" >Rails does that with all of its asset links. The number is the modification date of the file (in seconds after something). The idea being that when you roll out an update that link will change to something different after the ? which forces the browser to get a new copy (rather than using a cached copy). Fred> I''am sure the site is in production mode. > > Thanks for your help, > Mickael. > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Frederick Cheung wrote:> Rails does that with all of its asset links. The number is the > modification date of the file (in seconds after something). The idea > being that when you roll out an update that link will change to > something different after the ? which forces the browser to get a new > copy (rather than using a cached copy). > > FredAnd you can turn if off by putting # turn off time-stamping of static assets ENV[''RAILS_ASSET_ID''] = '''' in your config/environments/production.rb file. Peace, Phillip -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
"static assets" That''s what I needed to being able to make a search on that ! Thanks you guys. Mickael. Phillip Koebbe wrote:> Frederick Cheung wrote: >> Rails does that with all of its asset links. The number is the >> modification date of the file (in seconds after something). The idea >> being that when you roll out an update that link will change to >> something different after the ? which forces the browser to get a new >> copy (rather than using a cached copy). >> >> Fred > > And you can turn if off by putting > > # turn off time-stamping of static assets > ENV[''RAILS_ASSET_ID''] = '''' > > in your config/environments/production.rb file. > > Peace, > Phillip-- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---