Plugin Support
qtwrk
(@qtwrk)
Hi,
please check in /wp-content/litespeed/avatar
directory , see if you did purge all - gravatar
, if this dir still exists or being removed
if the dir is removed , that means the purge is working
yes , it could be browser cache thing , as the file will be cached by browser for certain time , like in this case, 365 days
Best regards,
@qtwrk, thanks for your reply.
It looks like a Browser Cache issue…
Because as mentioned, when we delete the site specific ‘Website Data’, in the ‘Advanced’ settings for Safari in our iPhones, we then see the new avatar when we refresh the page(s).
But why does everything else in the browser(s) purge to show new images, updates to styling, etc. when the ‘Purge All’ options are employed, but the avatars do not—are avatars considered “static” content?
Our Browser Cache TTL is set to 365 days, but is there a way to make sure our visitors are not seeing old/stale content because their respective browser cache is holding on to it?
This may seem like a silly question, but is there a purge option for the Browser Cache so that we don’t have to wait a year for the avatar to change?
-
This reply was modified 9 months, 3 weeks ago by
thecozyapron.
Plugin Support
qtwrk
(@qtwrk)
Hi,
well , actually there isn’t a way to force purge browser cache from server-side , best thing you can do is totally change the file name , so browser will fetch from server again
from JS/CSS side , it is more “intelligent” , the file name it generates was based on md5 sum value from file content
so each time file content is changed (like you updated something) , the md5 sum will change , thus the file name , this will lead browser to fetch again from remote
the gravatar cache , on the other hand , doesn’t have this mechanism , I will suggest our devs to looking into it , but for now, if you want your users to get new images, you can set this option to OFF , so browser will fetch from remote
Best regards,