# Collapse.gif?1208641118 in production

**URL:** <https://www.ruby-forum.com/t/collapse-gif-1208641118-in-production/143551>\
**Category:** Rails\
**Created:** [July 20, 2008, 11:46am UTC](https://www.ruby-forum.com/t/collapse-gif-1208641118-in-production/143551 "2008-07-20T11:46:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![micktaiwan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/4af34b/32.png) [@micktaiwan](https://www.ruby-forum.com/u/micktaiwan)\
**Post date:** [July 20, 2008, 11:46am UTC](https://www.ruby-forum.com/t/collapse-gif-1208641118-in-production/143551/1 "2008-07-20T11:46:57Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![micktaiwan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/4af34b/32.png) [@micktaiwan](https://www.ruby-forum.com/u/micktaiwan)\
**Post date:** [July 20, 2008, 12:29pm UTC](https://www.ruby-forum.com/t/collapse-gif-1208641118-in-production/143551/2 "2008-07-20T12:29:12Z")

</div>

On Jul 20, 10:46 am, Mickael Faivre-Macon \<rails-mailing-l…@andreas-  
[s.net](http://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

---

<div class="post-metadata">

**Author:** ![micktaiwan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/4af34b/32.png) [@micktaiwan](https://www.ruby-forum.com/u/micktaiwan)\
**Post date:** [July 20, 2008, 8:54pm UTC](https://www.ruby-forum.com/t/collapse-gif-1208641118-in-production/143551/3 "2008-07-20T20:54:16Z")

</div>

Frederick C. 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

---

<div class="post-metadata">

**Author:** ![micktaiwan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/4af34b/32.png) [@micktaiwan](https://www.ruby-forum.com/u/micktaiwan)\
**Post date:** [July 20, 2008, 10:35pm UTC](https://www.ruby-forum.com/t/collapse-gif-1208641118-in-production/143551/4 "2008-07-20T22:35:41Z")

</div>

“static assets”  
That’s what I needed to being able to make a search on that !

Thanks you guys.  
Mickael.

Phillip K. wrote:

> Frederick C. 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
