Varyng fastcgi_cache_valid times


We’ve configured a site following this guide:

The thing is that we use WP API to serve content to an App. How can we configure fastcgi_cache to have different fastcgi_cache_valid times depending the URL?

I mean, we would like to cache the site for 10 minutes and the jsons from the API for only 1 minute.