I’m trying to optimize the performance of our web app, but I just found that by running PageTest in our web site one of the recommendations says:
Resources with a “?” in the URL are not cached by some proxy caching servers. Remove the query string and encode the parameters into the URL for the following resources:
Is there a configuration to remove the ? and date timestamp on the files like:
http://192.168.0.102/assets/topjs.js?1330103960
Thanks!
This is a asset cache breaking mechanism in Rails. You can disable it in your
environment.rbor the environment specific file withActionView::Helpers::AssetTagHelper.cache_asset_timestamps = falseSee https://github.com/rails/rails/blob/2-3-stable/actionpack/lib/action_view/helpers/asset_tag_helper.rb#L517 as well.