Hello,
I have a little problem with image caching. I have a Student model which
contains, for each student, a picture (picture_data for datas and
picture_type for the content-type of the picture). As I want to save
brandwidth, I followed the tutorial in
http://manuals.rubyonrails.com/read/chapter/62 for caching pictures. If
I test, as the tutorial suggests it, with curl, it''s working well. No
problems.
But in reality, it''s not working well. I have a page to view the
student
properties (/student/view/:id) with the picture into and a page to edit
properties (/student/edit/:id) in which you can upload a new picture.
When I update properties, if everything went done normally, I just send
a redirect_to to the view. But when I change the picture in the edit
page, the picture doesn''t update in the view. I have to refresh the
page
(F5) to get an update of the picture. If I sniff requests made by my
browser, after the edit, the picture is not requested. I don''t know
why.
Every browsers are affected (IE, IE7, FireFox (win and linux), Opera
(linux)).
I tried to change the cache headers of the view page without any
affects. The only option I have is to send the picture every-time
without caching.
Any ideas on this ?
Thanks you very much in advance ;)
++ Jérôme
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---