When I change the file extension type, the mime-type policy no longe works.
The mime-type policy on the ProxySG checks the content-type field in the HTTP header.
You must run a PCAP and make sure that when you change the file extension, the web server is still sending the right content-type in the http response header.
Alternatively, you can block the traffic based on the Apparent data type.