String baseSseUrl = requestUrlString.replaceFirst(stripApiRegex, "") + "sse";
if (!requestUrlString.contains("/api-debug-doc.js")) {
boolean debug = requestUrlString.contains("api-debug.js");
ApiCacheKey apiKey = new ApiCacheKey(apiNs, actionNs, remotingApiVar, pollingUrlsVar, sseVar, group, debug);
String apiString = ApiCache.INSTANCE.get(apiKey);
if (apiString == null) {
apiString = buildApiString(apiNs, actionNs, remotingApiVar, pollingUrlsVar, sseVar, routerUrl,
basePollUrl, baseSseUrl, group, debug, false);
ApiCache.INSTANCE.put(apiKey, apiString);