I have devloped a spa (single page application) in the react technology and one cms application in which I have enabled the content delivery api. Our spa application consuming the content delivery api.
When I am upadating and publishing content in the cms application some times updated content immediately not reflecting in the spa applciation.
I have gone through https://mmols.io/add-http-caching-to-the-episerver-content-delivery-api link . But unfortunately not able to implment in cms 12.
I am not able to find below reference in cms 12
You said when you publish content, CDApi is delayed in returning the updated content. Are you looking to remove this delay?
I think the first thing to do would be to work out where the caching is occurring. Often SPAs will store API responses to avoid making the same request twice so it may be that the content is getting cached in your SPA. I'd say the first thing to try would be to hit the API directly using postman or something like that to request the content for one of the pages where you're seeing the issue. Publish a change in the CMS and hit the API again to see if your change is reflected in the API response.
Surjit Bharath Yes, I am looking to remove this delay.
I have found the solution and my issue got resolved . Below link is helpful for me.