?<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 ?, where number seems to be a timestamp.

E.g.: Logo

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

For a cogent explanation, cf.
http://hypsometry.com/blog/on-browser-caching-asset-timestamping-and-rails

That explains everything!
Thanks,
Tom

mtbguru wrote:

E.g.: Logo

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. :wink:

(That’s just a wild guess, folks!)


Phlip
Redirecting... ← NOT a blog!!!