Flush contents before saving sessions values to avoid header overwriting.
Add a timestamp to each avatar to break the cache.