Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By thedrupalguy on
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
alternatives
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
thanks enhenriks
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.