# ?\<number\> added to my url's

**URL:** <https://www.ruby-forum.com/t/number-added-to-my-urls/77211>\
**Category:** Rails\
**Created:** [November 25, 2006, 3:38am UTC](https://www.ruby-forum.com/t/number-added-to-my-urls/77211 "2006-11-25T03:38:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [November 25, 2006, 3:38am UTC](https://www.ruby-forum.com/t/number-added-to-my-urls/77211/1 "2006-11-25T03:38:05Z")

</div>

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](https://test.ruby-forum.com/images/logo.png?1163464174)

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

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [November 25, 2006, 4:02am UTC](https://www.ruby-forum.com/t/number-added-to-my-urls/77211/2 "2006-11-25T04:02:26Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [November 25, 2006, 4:12am UTC](https://www.ruby-forum.com/t/number-added-to-my-urls/77211/3 "2006-11-25T04:12:10Z")

</div>

That explains everything!  
Thanks,  
Tom

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [November 25, 2006, 4:12am UTC](https://www.ruby-forum.com/t/number-added-to-my-urls/77211/4 "2006-11-25T04:12:10Z")

</div>

mtbguru wrote:

> E.g.: ![Logo](https://www.ruby-forum.com/images/logo.png?1163464174)

> 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  
[Redirecting...](http://www.greencheese.us/ZeekLand) ← NOT a blog!!!
