Closed kpishere closed 9 months ago
Are you testing on local machine or behind Cloudflare? If behind Cloudflare, you need to change the default cache setting from 4 hours
to respect existing headers
I just dig this issue again and found that CDNs like Cloudflare do not respect header last-modified
(Stackoverflow).
So just add (starts_with(http.request.uri.path, "/static/avatars/")) or (starts_with(http.request.uri.path, "/static/inn_icons/"))
this rule in Cloudflare Caching/Cache Rules
When you upload an avatar for a user, there is no cache flush on your browser so that new avatar does not take effect.
This happens when one is replacing the avatar with a new one.