Forum Discussion

amallet_4001's avatar
amallet_4001
Icon for Nimbostratus rankNimbostratus
Jun 01, 2017

Exception Rewriting javascript

Hello,

I have a application that load javascript on the APM with Portal Access and full patching. The application loads on the mobile devices and the loading is long, due to the rewriting of JavaScripts.

I believe this is due to the resource restrictions on the mobile devices to handle/process large content.

There are not links on the JavaScripts, then we do not need to patch it. I want to disable the rewrite for the JavaScripts

I create Irule:

when HTTP_RESPONSE {
if { [matchclass $my_uri_SAP contains my_uri_SAP] && [HTTP::header "Content-Type" ] contains "javascript"} {
   REWRITE::disable
   }
}

It's not working fine 😞

At which event flow APM, I must to insert the rewrite::disable ? Or disable the process of rewrite.

Thanks you in advance.

Best Regards,

1 Reply