Some pages aren't correctly received on mobile phones (many ones in France) : JavaScript script elements are inlined.
Instead of having
<script src="static/jquery-2.1.3.min.js"></script>
I have
<script> ... content of the whole jQuery script ... </script>
As the Content Security Policy header I set forbids inline scripts, modern browsers block the execution of the script.
Is there a way to deal with that other than using HTTPS ? Maybe some way to specify the page shouldn't be rewritten by third parties ?
Notes :
Cache-Control:no-transform
header is ignored as wellNot the most elegant solution, but you can always try to trick the ISP into thinking it is not a js resource by changing the file extension (which would probably induce a change in the mime type in the header you send).
Serve the file as jquery.java
or some other extension. Again, not the most elegant solution, but as tadman says in the comments, sometimes it isn't easy to deal with jerks.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With