Reputation: 868
I have a website that shows a preview of an image when the user add some caption to it.
The flow is:
Everything works fine except in IE10, it creates the image with the caption on the server, but it shows the old image when he is redirected to /edit, after a F5 it shows the data from the server.
So, I think it is caching the page. Chrome, Safari and Firefox work fine.
I'm working on Ruby on Rails.
Anyone knows a workfix?
Upvotes: 0
Views: 99
Reputation: 5773
Try to add this meta as the first element inside HEAD
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
Another option is to add a param to your url:
<IMG SRC="myimage.png?fuckIe=12345" />
Where 12345 change on every request
Upvotes: 1