I have used knockout for several projects recently. I have just been working on my first mobile project and have noticed a issue with my network provider (O2) stripping out comments from the source code, this was causing a significant issue in the page as all the knockout virtual elements are also being removed. After some research this seems to be due to some software by bytemobile. The software compresses images, strips comments, etc. (more details on This Question).
I'm struggling to find out how this file knows to strip out the comments. The "full" sites we have working seem to keep their comments/virtual elements when loaded over the mobile data but the mobile sites are having the data stripped out.
Does anyone know how bytemobile/O2 tell whether to ignore the page? Or know of any workarounds/fixes (other than the one linked) to the problem?
Any help or advice would be appreciated!
You mentioned that you don't want answers from the linked question, but I think setting the "Cache-control" header to "no-transform" is the correct way of telling the proxy not to interfere with your page. What part of that solution don't you like?
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