Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

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

banerjee_ronit
Level 1
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.

1 Accepted Solution
duypnguyen
Correct answer by
Employee
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
banerjee_ronit
Level 1
Level 1

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

duypnguyen
Correct answer by
Employee
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