Topic: Fix for 3G/4G problems content modification [SOLVED]
I am very happy with Juicebox but was annoyed by the fact that it does not work on a mobile device if you are 'on the road', using your 3G/4G connection and the provider messing up the javascript. I found a solution which I thought I should share here.
My solution assumes that your webserver has PHP running.
What you need to do is the following 4 things:
1. change your main page and add the following 3 lines at the very top:
<?php
header("Cache-Control: no-transform");
?>
2. change the reference to the Juicebox javascript to:
<script src="jbcore/juicebox.js.php"></script>
3. change the juicebox.js file and add the extension .php so that it's name is juicebox.js.php
4. change the juicebox.js.php file (I used Notepad++ to change it but I suppose any text editor should be able to do it) and add the following 3 lines at the very top:
<?php
header("Cache-Control: no-transform");
?>
I know it's a (slight) modification of the Juicebox scripts which will break with every update but the upside is that your site will also work with Juicebox when your customers are on a mobile network.
Disclaimer :-) I was only able to test with Vodafone but the trick should work with all providers.