Mathieu Chappuis
2006-Jul-27 14:24 UTC
[Rails] A number (id?) is added after css/js tags like style.css?1154009736
Dears, My Ror setup works.. but I can''t guess why <%= stylesheet_link_tag ''style'' , :media=> ''screen''%> is rended as <link href="/stylesheets/style.css?1154009736" media="screen" rel="Stylesheet" type="text/css" /> What is that number.. any usage ?? Or I misconfigured something ? Thanks
Chris Hall
2006-Jul-27 14:43 UTC
[Rails] A number (id?) is added after css/js tags like style.css?1154009736
this number (unix timestamp) is added to the javascript and stylesheet links in development mode so that your browser is forced to reload the files it would normally have cached. On 7/27/06, Mathieu Chappuis <mathieu.chappuis.lists@gmail.com> wrote:> Dears, > > My Ror setup works.. but I can''t guess why > > <%= stylesheet_link_tag ''style'' , :media=> ''screen''%> > > is rended as > > <link href="/stylesheets/style.css?1154009736" media="screen" > rel="Stylesheet" type="text/css" /> > > What is that number.. any usage ?? > > Or I misconfigured something ? > > Thanks > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Peter De Berdt
2006-Jul-27 14:44 UTC
[Rails] A number (id?) is added after css/js tags like style.css?1154009736
On 27 Jul 2006, at 16:24, Mathieu Chappuis wrote:> Dears, > > My Ror setup works.. but I can''t guess why > > <%= stylesheet_link_tag ''style'' , :media=> ''screen''%> > > is rended as > > <link href="/stylesheets/style.css?1154009736" media="screen" > rel="Stylesheet" type="text/css" /> > > What is that number.. any usage ??Yes, it''s the modification date of the file. It prevents browsers from using a cached version if your css file is changed, but as long as you don''t change it, the number at the end will stay the same and the browser will use the locally cached version. Best regards Peter De Berdt -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060727/7a6c62c2/attachment.html
Mathieu Chappuis
2006-Jul-27 15:44 UTC
[Rails] A number (id?) is added after css/js tags like style.css?1154009736
On 7/27/06, Peter De Berdt <peter.de.berdt@pandora.be> wrote: On 7/27/06, Chris Hall <christopher.k.hall@gmail.com> wrote: Wow, another fine Railtie. Thanks for your answers..