Database version 19.3.0.0.0
APEX version 21.1.2
Hi all,
the APEX instance of my provider was recently updated to 21.1.2
The following code in a dynamic action now fails with a HTTP 500 error.
$.ajax({type: "GET",
url: "f?p=&APP_ID.:20:&APP_SESSION.:APPLICATION_PROCESS=POI_MAP_DATA::::",
dataType: "json",
cache: false,
success: function(data) {
for (var i = 0; i < data.poicount; i++) {
var poi = data.pois[i];
thisInfo = poi.info;
thisMarker = addMarker(map, poi.map_latitude, poi.map_longitude, poi.tooltip, thisInfo, poi.category_icon);
markers.push(thisMarker);
}
}
});
The error is caused by jQuery.ajax() adding a dummy parameter with a timestamp that is not recognized by APEX e.g. &_=1627576118103 See below:
https://{host}/ords/f?p={APP_ID}:20:7675497871302:APPLICATION_PROCESS%3DPOI_MAP_DATA::::&_=1627576118103
This is what's called "cache busting".
Changing the parameter 'cache' to 'true' in $.ajax fixes the problem but it appears to me that either it was wrong before or is wrong now.
Any comments would be greatly appreciated.
Regards, Garry Lawton