Relative Content

Tag Archive for javascriptredux-toolkit

How to pass Cache-control in RTC query in get request?

I recently started learning RTK Query and I’m now studying how to work with caching. Could someone please suggest the best way to send the Cache-Control header in a request? I’ve seen the following approach in the web, and I’d like to know if it’s correct.