Syncing works, but Image are not loaded

Hi!

I’ve installed a Silverbullet docker container on my unraid-server. Accessing it via cloudflare tunnel. Everthing works except the images. They are uploaded to the server but if I login to my silverbullet-site everything is shown except the images. They are not synched to the client.

Has anybody an idea where the problem could be?

Thanks in advance.
anita

Can you see the images when you manually add upload them into the web-UI using the “Upload: File” command?

If that works, then the problem is likely Cloudflare cacheing static content.
Try these steps:

1. In the Cloudflare dashboard (one time setup)

  1. Go to your domain
  2. On the left bar => Cacheing => Cache rules => Create a cache rule
  3. Call it whatever, for example: “Bypass cache for SB”
  4. Create expression like below (NOTE: You need to separate them with OR). You can also add additional queries for /*.pdf, or other doc formats as needed
  5. Cache eligibility should be Bypass cache
  6. Save
  7. On the left bar => Cacheing => Configuration => Custom purge
    1. Purge by URL
    2. Add your domain like this https://silverbullet.domain.com/*
      Alternatively you could Purge everything

2. In your Silverbullet webpage

  1. Delete all site data, normally Ctrl+Shift+Delete does the trick
  2. You may also need to enter Developer-Settings in your browser and go to Applications => Clear site data.

    This is how it looks in Edge
  3. Force reload the webpage and see if the images are showing up.
1 Like

Worked!

Thank you. Just saved my day.

No worries
@zef would it make sense to add this to your Cloudflare guide?

I have been scratching my head with this problem for weeks now.

Amazing work figuring this out!

I was like: what cloudflare guide, but I suppose you mean this one? I didn’t write it, but we can link them.

1 Like