mtbguru-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2006-Nov-25 02:37 UTC
?<number> added to my url''s...
Hi All, I have a rails application up and running. It''s working great. The one thing that bothers me is that when I embed urls in my pages, a lot of them are suffixed by ?<number>, where number seems to be a timestamp. E.g.: <a href="/"><img alt="Logo" height="130" src="/images/logo.png?1163464174" width="355" /></a> This has been generated by a simple: link_to(image_tag("/images/logo.png", :size => "355x130") ... ) This happens to a lot of other links, like stylesheet_link_tag, javascript_include_tag etc. It has never really broken functionality, but it doesn''t look nice. Any ideas? Thanks, Tom --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
For a cogent explanation, cf. http://hypsometry.com/blog/on-browser-caching-asset-timestamping-and-rails -- 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 -~----------~----~----~----~------~----~------~--~---
mtbguru-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2006-Nov-25 03:09 UTC
Re: ?<number> added to my url''s...
That explains everything! Thanks, Tom --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
mtbguru wrote:> E.g.: <a href="/"><img alt="Logo" height="130" > src="/images/logo.png?1163464174" width="355" /></a>> This happens to a lot of other links, like stylesheet_link_tag, > javascript_include_tag etc. It has never really broken functionality, > but it doesn''t look nice.> Any ideas?Run your site in RAILS_ENV=production mode and see what happens. ;-) (That''s just a wild guess, folks!) -- Phlip http://www.greencheese.us/ZeekLand <-- NOT a blog!!! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---