I have a menu app that calls a mapbox map based upon certain global variables passed to it, that runs in one of the menu tabs.
Unfortunately the map keeps on rendering the cached data.
I have in the header of the map included:
meta http-equiv=“refresh” content=“60”>
I have tried to include in my app
header(‘Cache-Control: no-store, no-cache, must-revalidate’);
header(‘Cache-Control: post-check=0, pre-check=0’, FALSE);
header(‘Pragma: no-cache’);
But I lose my global variables, which are required throughout my app and also when calling/launching the map.
Please if someone can advise, it would be most appreciated.