Dorcas Uploaded this new profile picture about days ago, and the change only appears now. I wonder if it's my phone browser for sublevel or what.
🦿 Lucian Marin The pictures are cached for a longer period of time so they won't consume cellular data.
8y, 30w 7 replies
Eric Force users to recache someone's profile image when a new one is uploaded for that individual? Having to force a refresh of images on a mobile browser is a annoying process.
8y, 30w 5 replies
🦿 Lucian Marin I have to save pictures as new files. Now avatars carry the user id. I'll look into some naming conventions for newly generated files.
8y, 30w 4 replies
Login or register your account to reply
Eric Just have a random token on the end of the path to the image which only changes when the user uploads a new one. So it would be: image.jpg?foo then it changes to image.jpg?bar when a new one is uploaded, this will force a recache only for that unique users image in everyone's browser when they view the page.
8y, 30w 3 replies
Martijn Some people recommend against using query strings for "cache busting", for caching purposes. See stevesouders.com/b... Putting versions in the filenames themselves is still fine though. If for storage management you do not want to change filenames all the time, you can consider URL rewrites stackoverflow.com/... cc:
8y, 30w 2 replies