[Rails] A number (id?) is added after css/js tags like
style.css?1154009736
Peter De Berdt
peter.de.berdt at pandora.be
Thu Jul 27 14:44:44 GMT 2006
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
More information about the Rails
mailing list