I am working on a site where member can edit their profile. When a member want to change his image and upload a newer one he can't see the immediate effect of changing the image in his profile as the page holds the old one. Please help to solve this problem.
Viplave
Page Refresh Problem after uploding image
Moderator: General Moderators
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: Page Refresh Problem after uploding image
Set headers to tell the browser not to cache the page.
(#10850)
Re: Page Refresh Problem after uploding image
A better approach (internet- and user-friendly) is to cache the image indefinitely and change the URL for a member's pic when the user changes it. This way you make sure visitors will get the fresh picture while you'll use the most of caching mechanisms at the same time.
Here's an interesting article on the subject: http://www.mnot.net/cache_docs/.
Here's an interesting article on the subject: http://www.mnot.net/cache_docs/.