Understanding Facebook Profile Photo Caching

Comments

1 comment

  • Avatar
    Maor Gariv

    Hi,

    Thanks for reaching out.

    Your flow looks correct. Calling the Explicit API to refresh the image and checking for newer versions (the version is returned in Explicit's response) will make sure you always serve the latest profile pic. Also, add the `invalidate` parameter to purge the old image from the CDN.

    Without a version component, it can take up to an hour for the purge to fully propagate through the network.

    Hope it helps, let me know if you have any further questions.

    Best,

    0
    Comment actions Permalink

Please sign in to leave a comment.