I know Prosody does & I’d put money on ejabberd supporting it too but I’ve not looked it up. You can check compliance for Conversations using https://compliance.conversations.im/ which includes message archive management or use a client that exposes a servers supported XEPs. Yes, it works with encrypted messages.
Which server do you use that caches messages for you, and how do I know if a given XMPP provider has implemented this functionality?
Also, does it also work with e2ee messages?
I know Prosody does & I’d put money on ejabberd supporting it too but I’ve not looked it up. You can check compliance for Conversations using https://compliance.conversations.im/ which includes message archive management or use a client that exposes a servers supported XEPs. Yes, it works with encrypted messages.