On 23 July 2010 10:52, Tom Mac li...@ruby-forum.com wrote:
I have a of line code like
%= stylesheet_link_tag styles,:cache = cache/styles %
And it produces source as
link href=/stylesheets/styles.css?1279620123 media=screen
rel=stylesheet type=text/css /
config.action_controller.perform_caching = true
My concern is what is 1279620123 after question mark(?) above. If such a
random number always appended, whether caching in browser happens or
not?Please give me a good idea
It's the timestamp when the file was last changed (or the last file if you
list multiple stylesheets in stylesheet_link_tag).
That way browsers can cache it long term and it will automatically change if
you change one of the files during a new deployment.
Cheers,
Andy
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.