I have a menu item which has a callback function. The function call some API service which takes source IP address for whitelisting. Now if my website because of Akamai be hosted on multiple edges, it will show up multiple IP addresses for different locations. Is there a way that I can exclude this menu item from being cached?

Comments

ehenriks’s picture

Hi,

I´m not that technical but if you are using Akamai you should be able to use the cache control "no cache option".

Caching 101
https://www.youtube.com/watch?v=zAxSE1M4yKE

thedrupalguy’s picture

Got a clue from your response. Used drupal_add_http_header('Cache-Control', 'no-cache, no-store') so that it always goes to origin and not cached in Akamai CDN edges.