# Asset cache (timestamp after the image link)

**URL:** <https://www.ruby-forum.com/t/asset-cache-timestamp-after-the-image-link/184466>\
**Category:** Rails\
**Created:** [March 3, 2010, 2:55am UTC](https://www.ruby-forum.com/t/asset-cache-timestamp-after-the-image-link/184466 "2010-03-03T02:55:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ledowong](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/fbc32d/32.png) [@ledowong](https://www.ruby-forum.com/u/ledowong)\
**Post date:** [March 3, 2010, 2:55am UTC](https://www.ruby-forum.com/t/asset-cache-timestamp-after-the-image-link/184466/1 "2010-03-03T02:55:55Z")

</div>

For browser cache purpose, asset\_helper help us to add a timestamp  
(integer) after image, javascript and css files  
([http://www.example.com/image.jpg?123456](http://www.example.com/image.jpg?123456)), but which seems doesn’t  
working properly in my production server.

I am not sure if I am correct, it check the file last modify time to  
generate the integer. Our problem is, we use attachment\_fu to upload  
photo, and we added a feature to rotate the photo. I checked the photo  
in file system(linux), and the database filed (updated\_at), both updated  
after the photo is rotated, but the timestamp in the url of the image  
does not update…

We use mongrel cluster and deploy using capistrano. We haven’t override  
any function about asset\_helper.

Any idea?

Thanks.
