Question - Request caching
robsontenorio opened this issue · 2 comments
robsontenorio commented
Hi!
Docs says about image caching, but nothing about a general request like GET or POST ?
Is it possible ? Eneable or disable caching per request, including maxAge config.
3lvis commented
Hi,
It does allow request caching per request, you can set the cachingLevel
when making a request.
let result = try await networking.get("/get", cachingLevel: .memoryAndFile)
It doesn't allow maxAge but would be interesting too look into it.
robsontenorio commented
Thanks !