diff --git a/src/Plugin/ProxifyPlugin.php b/src/Plugin/ProxifyPlugin.php index a5ef491..0d29cdf 100644 --- a/src/Plugin/ProxifyPlugin.php +++ b/src/Plugin/ProxifyPlugin.php @@ -146,8 +146,8 @@ public function onCompleted(ProxyEvent $event){ $str = $response->getContent(); - // DO NOT do any proxification on .js files - if($content_type == 'text/javascript' || $content_type == 'application/javascript' || $content_type == 'application/x-javascript'){ + // DO NOT do any proxification on .js files and text/plain content type + if($content_type == 'text/javascript' || $content_type == 'application/javascript' || $content_type == 'application/x-javascript' || $content_type == 'text/plain'){ return; } @@ -182,4 +182,4 @@ public function onCompleted(ProxyEvent $event){ } -?> \ No newline at end of file +?>