Expand my Community achievements bar.

SOLVED

AIO Runtime Caching Configuration- With Cache-Control Header is not working

Avatar

Level 1

I am willing to configure caching for my IO Runtime action using the Cache Control Header - Cache-Control:max-age=1800.

Although the header is coming up in response, but the action is not hitting the cache on subsequent calls. 

Also the header X-Cache is CONFIG_NOCACHE , which signifies that Caching has not been configured from Azure CDN (Note that IO runtime is internally leveraging MS Azure) 

Is there any thing else that needs to configured for this to work?

Below are the cache related headers which I am currently getting as part of IO Action response:

Cache-Control: max-age=1800

X-Cache:CONFIG_NOCACHE

x-gw-cache:BYPASS

 

Thanks and regards,

Ronit Banerjee.

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Employee

@banerjee_ronit - how are you inspecting the request? using Postman?

Please make sure that you un-check "disable cache" in Postman settings (which is checked by default).

And also you should make a GET call, not POST.

View solution in original post

3 Replies

Avatar

Level 1

   @duypnguyen   - Any insights/suggestions on the above would be of great help. 

Avatar

Correct answer by
Employee

@banerjee_ronit - how are you inspecting the request? using Postman?

Please make sure that you un-check "disable cache" in Postman settings (which is checked by default).

And also you should make a GET call, not POST.

Avatar

Level 1

@duypnguyen  - Tested from browser (GET call) and its working. Thanks!