I think I have solved this issue. Adding the solution to help others.
I also have one question that I don’t undestand below, maybe someone
could enlighten me
The problem is that by default the caching mechanism will use the same
extension of the request to store the cached file. If no extension
exists (/home/show_county/22) then the default is .html
Next was the figure out how to get the request to have the js
This is done by setting an argument to url_for :format => :js This
doesn’t seem to be well documented (http://apidock.com/rails/
ActionController/Base/url_for only in the comments!) but it did work.
However as a consequence of this I had to rename some views from
xxx.html.erb to xxx.erb, I don’t know why? Anyone?
Once I did this, the request was sent as a .js which was then cached
On May 11, 1:45 pm, Diarmuid firstname.lastname@example.org