collapse.gif?1208641118 in production

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.

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

Frederick Cheung 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

"static assets"
That's what I needed to being able to make a search on that !

Thanks you guys.
Mickael.

Phillip Koebbe wrote: