On one of the views I display an image “some_week.jpg”, which basically
displays a graph for data corresponding to a particular week, by default
Following is the code snippet in view which displays an image,
On this view, User has an option of selecting some other week and see
graph corresponding to it. I have implemented this using an AJAX call
the graph image is constucted using Gruff library on server side and
following response is sent back from RJS,
page.replace_html ,“image_place_holder”, imageTag
where, session[:user_id] =1 and @picName = “some_week.jpg”
After the response the image in the browser is still the old image, I
verified on server, the new image is created in the mentioned directory
browser seem to cache the old image.
I am using Mozilla Firefox 188.8.131.52.
Help is appreciated.