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"
I’am sure the site is in production mode.
Thanks for your help,
Mickael.
On Jul 20, 10:46 am, Mickael Faivre-Macon <rails-mailing-l…@andreas-
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
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
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 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
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs