rails 4 sending "no-cache" for most (but not all) js and css assets -
i'm trying debug issue rails 4 server of js , css assets being sent clients cache-control header of "no-cache". despite having digest appended.
i'm not certain, may assets included other assets "no-cache" header.
the ones don't have "no-cache" (correctly) getting "public, max-age=31536000".
is there step need take included assets make them use right cache-control directive? i'm not rails expert nor person set particular server. trying debug issue after fact.
edited add:
it turns out js files being handled correctly (i.e. "public, max-age=31536000") ones explicitly listed in assets/javascripts/application.js. file looks like:
//= require jquery //= require jquery_ujs //= require datatables/jquery.datatables //= require jquery-ui //= require turbolinks //= require_tree .
all js files not working correctly located @ at paths form:
/assets/javascripts/datatables/extras/file.js
Comments
Post a Comment