PHP + HTML will overwrite the original Avatar After the Avatar is uploaded. For cache reasons, only CTRL + F5 is refreshed. Otherwise, the old Avatar will always be displayed. How can you solve this problem? PHP + HTML
After an avatar is uploaded, it will overwrite the original avatar. For cache reasons, it will only be displayed after CTRL + F5 is refreshed. Otherwise, the old Avatar will always be displayed.
How do you solve this problem?
Reply content:
PHP + HTML
After an avatar is uploaded, it will overwrite the original avatar. For cache reasons, it will only be displayed after CTRL + F5 is refreshed. Otherwise, the old Avatar will always be displayed.
How do you solve this problem?
It is best to modify the Avatar url after the avatar changes.
If you want the url to remain unchanged, remember to include? R = xxx
Remember thisXxx
Randomly generated by the server or client each time.
Another method is to use a fixed url for a user's profile picture, such as facebook. However, when accessing this url, a 302 jump will be generated to the real image address, the actual image address ensures that each avatar is different.