Forum: Ruby on Rails JS / CSS ressource files and query strings for caching

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
30269682335f1fb247d71969fa715b5e?d=identicon&s=25 Roberto Saccon (rsaccon)
on 2006-06-01 18:30
(Received via mailing list)
Rails appends query strings to  ressource files for intelligent browser
caching (only updating browser cache when files get channged)

But this article (
http://www.thinkvitamin.com/features/webapps/servi... )
says
the following:

At this point, you might ask why we don't just add a query string to the
end
of the resource - /css/main.css?v=4. According the letter of the HTTP
caching specification, user agents should *never* cache URLs with query
strings. While Internet Explorer and Firefox ignore this, Opera and
Safari
don't - to make sure all user agents can cache your resources, we need
to
keep query strings out of their URLs.


Any comments on this ?

regards
This topic is locked and can not be replied to.