I am trying to take advantage of as much caching as possible with Prismic’s REST API but I am seeing some strange behavior related to HTTP caching.
I am using the JS SDK with this query
const section = await api.getByUID('section', 'test-section');
But the response headers seem to disable caching at all layers (e.g. CDN, browser):
cache-control: max-age=0, no-store pragma: no-cache
Since Prismic.io uses the master-ref to control versioning, it seems like it should be safe to cache at all layers, so how can I enable this?