Hello. The problem is: there is a user page. When updating an avatar or cover, a new image is accepted in the controller, resized, it is saved to a folder on the server. Folder with user id. The image overwrites the existing, that is, is saved under the same name 'avatar.jpg'. After that, a forced redirect to the user page. But the image does not change. It only changes if you press ctrl + F5. How to deal with it? Already registered in head such lines:
<meta http-equiv="cache-control" content="max-age=0" /> <meta http-equiv="cache-control" content="no-cache" /> <meta http-equiv="expires" content="0" /> <meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" /> <meta http-equiv="pragma" content="no-cache" /> But nothing has changed. I will welcome any advice. If you need more information - I will provide.