Howdy Ktor fans, Just triple checking before I gi...
# ktor
e
Howdy Ktor fans, Just triple checking before I give myself extra work, there's no ktor-http plugin that auto-magically handles "If-Modified-Since" and "Last-Modifed" headers right? Should be very straightforward to implement but I'd rather not re-invent the wheel 🙂 Do tag me if you happen to know, cheers!
a
Have you tried looking in the docs? https://ktor.io/docs/server-conditional-headers.html
e
That's only for ktor server right? Not the http clients
I'm not looking to generate headers, I'm looking to consume them on the client side
a
Well yes, it’s for server. That wasn’t clear from your question. How would you do this in the client? Cache the results somewhere?
e
I did mention ktor-http, but I could have been clearer Yeah, guess I'll implement some cache myself. Not to worry, very straightforward. Thanks
a
You can try using the HttpCache plugin, which should handle those headers.
e
Ah, thank you so much @Aleksei Tirman [JB] - I am definitely guilty of missing that. Thank you and thank you @Arjan van Wieringen for your help originally
❤️ 1