In Rails, How Can I Force Update The Client's Js/css Files?
When I use javascript_include_tag or stylesheet_link_tag to include files, they have a number at the end to make it easier to circumvent browser caching (update the file without ch
Solution 1:
Basically, in Rails 2, the number comes from the file's last modification date, and is added to the link as a query parameter. In Rails 3, it comes from a hash of the file's contents, and is added to the filename itself. The latter should be an improvement - see this page for more on the difference between the two.
Hope that helps!
Post a Comment for "In Rails, How Can I Force Update The Client's Js/css Files?"