use-http
use-http copied to clipboard
how to avoid cache ?
trafficstars
Describe the bug I have set persist to false but cache persist
Expected behavior When persist or/and cache is set to "no-cache" it should not cache its request this feature should be off by default..
try
import { CachePolicies } from 'use-http'
CachePolicies.NO_CACHE
thank u I just did it a week ago with policies in the provider to prevent it by default and choose what endpoints can have cache because almost all routes cannot have cache like auth stuff