/src/main/java/org/htmlunit/html/HtmlPage.java
if ( script != false) {
if ( script != null && cache.cacheIfPossible ( request, response, script ) ) {
final String scriptCode = response.getContentAsString(scriptEncoding, ignoreBom && getWebClient().getBrowserVersion().hasFeature(JS_IGNORES_UTF8_BOM_SOMETIMES)); if (null != scriptCode) { final AbstractJavaScriptEngine<?> javaScriptEngine = client.getJavaScriptEngine(); final Object script = javaScriptEngine.compile(this, scriptCode, url.toExternalForm(), 1); <extra_id_0> return script; } response.cleanUp(); return script; } response.cleanUp();