Title: disable cache for REST API
Last modified: December 28, 2024

---

# disable cache for REST API

 *  Resolved [Tech Avenue Labs](https://wordpress.org/support/users/techavenuelabs/)
 * (@techavenuelabs)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/disable-cache-for-rest-api/)
 * Hello,
 * How do we disable cache for REST API and sitemap?
 * Thank you

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [lastsplash (a11n)](https://wordpress.org/support/users/lastsplash/)
 * (@lastsplash)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/disable-cache-for-rest-api/#post-18224639)
 * Hi there –
 * Thanks for waiting patiently for a response.
 * You should be able to accomplish this by excluding them using the “Rejected URL
   Strings” setting in WP Super Cache.
 * For example, you can exclude the REST API by adding: `/wp-json/`
 * Let us know how it goes
 *  Plugin Support [Stef (a11n)](https://wordpress.org/support/users/erania-pinnera/)
 * (@erania-pinnera)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/disable-cache-for-rest-api/#post-18237817)
 * Hi there [@techavenuelabs](https://wordpress.org/support/users/techavenuelabs/),
 * Do you have updates about that, do you still need help? We usually close inactive
   threads after one week of no movement, but we want to make sure we’re all set
   before marking it as solved. Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘disable cache for REST API’ is closed to new replies.

 * ![](https://ps.w.org/wp-super-cache/assets/icon-256x256.png?rev=3506220)
 * [WP Super Cache](https://wordpress.org/plugins/wp-super-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-super-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-super-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-super-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-super-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-super-cache/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [Stef (a11n)](https://wordpress.org/support/users/erania-pinnera/)
 * Last activity: [1 year, 5 months ago](https://wordpress.org/support/topic/disable-cache-for-rest-api/#post-18237817)
 * Status: resolved