I’m using the latest Firefox and firebug with Rails 2.3.11 (and Ruby
1.9.1).
I see my javascript assets have the last modified date, such as:
javascripts/prototype.js?123456789
which has been the case for a while. What I just noticed is that
Firefox (according to Firebug) is fetching this for each request. This
is for a Rails server running in “production” mode. The browser’s
caching settings are normal (true for things like
browser.cache.disk.enable and browser.cache.memory.eable).
With my super small internet connection, pulling over prototype,
scriptaculous, and all its friends is a significant hit – plus, it just
doesn’t make any sense for it to do it every time.
The underlying environment is Apache and Thin (both relatively recent).
It seems like either the browser should not attempt to fetch it at all
(which it tends to do if the ?123456789 isn’t there) or the server
should be returning 304 (not modified).
Is this normal? What options do I have to change this?
Thank you,
pedz