Issue with redirect() - page refresh needed to see changes - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Issue with redirect() - page refresh needed to see changes (/showthread.php?tid=23328) |
Issue with redirect() - page refresh needed to see changes - El Forum - 10-07-2009 [eluser]stuart_g[/eluser] I've written a shopping cart, and have separate functions for deleting items and emptying the cart, which redirect to the display basket function. However, when I redirect the removed items etc. don't update in the basket until I manually refresh the page. I've specified the 'refresh' option in the redirect function, and that fixed the issue in IE 6, but Firefox 3 is still not showing changes until I force it. Any ideas as to why this is? This problem has only cropped up since I moved the site from a local Windows XAMPP installation to Redhat 5 LAMP. On the test machine I didn't have any problem with refreshing whatsoever. Many thanks Issue with redirect() - page refresh needed to see changes - El Forum - 10-07-2009 [eluser]stuart_g[/eluser] Just an update - I've been investigating myself, and I think it's to do with the more aggressive caching policy Firefox has taken since version 3. Others have reported that even if you try to force it with no-cache headers, it ignores them (and this has been reported as a bug). Still searching for a solution. |