On API controller:
[CacheOutput(ClientTimeSpan = 10)] - in seconds
When caching on the server when you his cache you'd get 304 "not modified' status instead of 200
If needed can also specify route
[Route("products"), HttpGet]
Sitecore HTML cache is cleared on publish.
No comments:
Post a Comment