Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Add / Update Cache-Control headers

Not applicable

Hi there,

I've noticed that the end point that I call from within Apigee returns a private, max-age=0 Cache-Control. What I'd like to do, is change this value and have Apigee pass this on to my client application so that the app can do some caching of it's own.

Does anyone have an example of how to do this (if it's possible). Is it as simple as assigning a message to the response for Cache-Control?

Thanks in advance for any help!

Solved Solved
0 3 1,445
1 ACCEPTED SOLUTION

Not applicable

I think your Response Cache should be fine. They are placed in the expected places.

You should be able to do what is needed without modifying the Cache-Control header by adding a new header that can be set to whatever you would like it to be. If for some reason you can only use the Cache-Control header, it can be set by an Assign Message policy in the proxy.

View solution in original post

3 REPLIES 3
Top Solution Authors