phanpy icon indicating copy to clipboard operation
phanpy copied to clipboard

Avatars (profile pictures) don't load unless I clear cache

Open steakscience opened this issue 1 year ago • 1 comments

Describe the bug A clear and concise description of what the bug is.

  • phanpy.social
  • Which site version: 2024.06.03.0a6030c
  • Which instance: inductive.space

To Reproduce Steps to reproduce the behavior:

  1. Go to Phanpy
  2. Avatars will not load, reloading normally will not fix this
  3. Reloading and clearing cache (cmd + shift + r) will fix this

Expected behavior Avatars should load on the first try

Screenshots https://github.com/cheeaun/phanpy/assets/2727095/d0b6ca4a-a1fb-4c84-9fb5-aa2f01625fb1

Desktop (please complete the following information):

  • OS: macOS, Linux
  • Browser Arc (Chrome 125 engine), Firefox 126

steakscience avatar Jun 03 '24 11:06 steakscience

Hey, I'm the owner of the instance (inductive.space). It seems the problem was not on phanpy's site, but rather two separate issues on our site.

I was serving the /system/ subpath without CORS headers (Access-Control-Allow-Origin) headers. 3rd-party avatars are served from that path. If I'm not mistaken, this would mean that phanpy can't load them. I've added Access-Control-Allow-Origin: * now.

Interestingly enough, Mastodon's default nginx config doesn't include those headers as well, so I'd have thought more people would've run into this problem by now?

Also, there seems to be a buggy filter in the EasyList ad blocker list that specifically caused these requests to fail when using instance with certain TLDs, such as .space. See https://github.com/easylist/easylist/issues/19302

Eisfunke avatar Jun 07 '24 08:06 Eisfunke