Back

Getting incorrect documents

  • 0
  • Self Hosted
  • Databases
  • REST API
fafa
26 Nov, 2023, 21:41

Where is that?

TL;DR
User is experiencing issues with getting incorrect documents while using Appwrite on localhost. They are unsure if the issue is related to caching or the edge runtime. They plan to publish it on a domain to see if the problem persists. A solution is not provided in the support thread.
fafa
26 Nov, 2023, 21:43

The thing is, it's on localhost, so caching shouldn't be really that big of an issue.. right?

fafa
26 Nov, 2023, 21:43

And it's really weird because sometimes I see all documents, but when I refresh again, it's just one

fafa
26 Nov, 2023, 21:44

Even purging cache doesn't help

fafa
26 Nov, 2023, 21:44

<:2HAhaa:746401772779601930>

fafa
26 Nov, 2023, 21:45

Or maybe it did..? I don't know, I'll publish it on a domain and see what happens

futurmaster
26 Nov, 2023, 21:49

Where does your Appwrite instance running?

futurmaster
26 Nov, 2023, 21:52

If on a server and the server is behind Cloudflare then it could be the edge cache generally but Cloudflare never cache sensitive data if the app running on the server (in this case Appwrite) properly setup the headers

Drake
26 Nov, 2023, 21:53

What if you use curl?

futurmaster
26 Nov, 2023, 21:54

(With โ€”verbose)

fafa
26 Nov, 2023, 21:55

postman is correct, i'll see about caching tomorrow with cf

fafa
26 Nov, 2023, 21:56

the custom domain probs has no caching rules

Drake
26 Nov, 2023, 21:56

If it's right using postman for both domains, then maybe it's a problem with the edge runtime and/or nextjs

fafa
26 Nov, 2023, 21:56

yeah

Drake
26 Nov, 2023, 21:56

I hate nextjs ๐Ÿคฃ

futurmaster
26 Nov, 2023, 21:57

And what is that you love? ๐Ÿ˜€

fafa
26 Nov, 2023, 21:59

why is that? ^^

futurmaster
26 Nov, 2023, 21:59

You can disable caching and every additional proxy features with the development mode

fafa
26 Nov, 2023, 21:59

thats not smart? just make a cache config rule in cf

fafa
26 Nov, 2023, 21:59

lol

Drake
26 Nov, 2023, 22:00

SSR always makes things more complicated. Nextjs does a ton of magic stuff that leads to weird behavior (honestly, it's probably because I don't know enough about it).

Drake
26 Nov, 2023, 22:00
futurmaster
26 Nov, 2023, 22:00

Yeah that would be definitely more smart but itโ€™s faster ๐Ÿ˜€

fafa
26 Nov, 2023, 22:01

yeah, not on dev tho

futurmaster
26 Nov, 2023, 22:02

Anyway if you self host Appwrite then why is important to use an extra server layer with SSR?

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more