# Javascript\_include\_tag and stylesheet\_link\_tag additional generated parameters

**URL:** <https://www.ruby-forum.com/t/javascript-include-tag-and-stylesheet-link-tag-additional-generated-parameters/189964>\
**Category:** Rails\
**Created:** [June 10, 2010, 5:08pm UTC](https://www.ruby-forum.com/t/javascript-include-tag-and-stylesheet-link-tag-additional-generated-parameters/189964 "2010-06-10T17:08:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![polunochnik](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/65b543/32.png) [@polunochnik](https://www.ruby-forum.com/u/polunochnik)\
**Post date:** [June 10, 2010, 5:08pm UTC](https://www.ruby-forum.com/t/javascript-include-tag-and-stylesheet-link-tag-additional-generated-parameters/189964/1 "2010-06-10T17:08:50Z")

</div>

Hi.

I just wonder why do the javascript\_include\_tag and  
stylesheet\_link\_tag methods generate additional parameters and add  
them to the paths on output?

For example, I have the following view:

# app/views/test.haml

%html  
%head  
= stylesheet\_link\_tag ‘styles.css’  
= javascript\_include\_tag ‘scripts.js’  
…

and when I load it, I get the next HTML:

 ...

What do ‘1276104169’ and ‘1275579095’ mean and why are they added to  
the paths?

Any help and links are wellcome.

Thanks.

Debian GNU/Linux 5.0.4;  
Ruby 1.9.2;  
Rails 2.3.8.

---

<div class="post-metadata">

**Author:** ![polunochnik](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/65b543/32.png) [@polunochnik](https://www.ruby-forum.com/u/polunochnik)\
**Post date:** [June 10, 2010, 5:11pm UTC](https://www.ruby-forum.com/t/javascript-include-tag-and-stylesheet-link-tag-additional-generated-parameters/189964/2 "2010-06-10T17:11:11Z")

</div>

On Jun 10, 3:00 pm, “P.A.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> the paths?  
> They’re the timestamps of when the file was changed. If you do update  
> the css/javascript files then when you next rollout the timestamp will  
> be different and people’s browsers won’t cache the old version

Fred

---

<div class="post-metadata">

**Author:** ![polunochnik](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/65b543/32.png) [@polunochnik](https://www.ruby-forum.com/u/polunochnik)\
**Post date:** [June 11, 2010, 10:16am UTC](https://www.ruby-forum.com/t/javascript-include-tag-and-stylesheet-link-tag-additional-generated-parameters/189964/3 "2010-06-11T10:16:00Z")

</div>

And if you want to get rid of them for some reason just create new  
initializer with following code:

ENV[‘RAILS\_ASSET\_ID’] = ‘’

and restart your server. All this numbers will go away.
