JS form submit “This page cannot be loaded using Chrome Data Saver. Try reloading the page. Debug in


I have a form on a simple page. When submitting it passes data of the "first name, last name, email" to the "real" join form of my customer and enables the user to continue to fill in the form with the data.

When my customer is running it on some android mobile phones he get this error:


This page cannot be loaded using Chrome Data Saver. Try reloading the page.

Debug info: POST CISmtuKa5MwCFUIEYgodMxIGmQ==


On every mobile phone I tested it - it works fine. The customer tested it on 2 different mobile phones and he (only) got these errors. This doesn't happen on desktops as far as I tested it. I tested it on some different browsers on my android too and it works fine.

This is the form I have:

<form id="preregistrationForm" action="" onsubmit="return get_action();" method="post"> <div> <input type="text" name="FirstName" id="FirstName" placeholder="First Name"> </div> <div> <input type="text" name="LastName" id="LastName" placeholder="Last Name"> </div> <div> <input type="text" name="EMail" maxlength="50" id="EMail" placeholder="Email"> </div> <input type="hidden" id="maleGengler" class="genderRadio" name="Gendler" value="M" checked=""> <input type="hidden" id="femaleGengler" class="genderRadio" name="Gendler" value="F"> <select name="birthDateMonth" id="birthDateMonth" style="display: none;"> </select> <select name="birthDateDay" id="birthDateDay" style="display: none;"> </select> <select name="birthDateYear" id="birthDateYear" style="display: none;"> </select> <input type="hidden" name="btag" id="btag" value=""> <input type="hidden" name="affid" id="affid" value=""> <button class="join-sub" onclick="chgAction()"></button> </form>

And this is the JS code. The last function chgAction() is the one that needs to be interesting. I just pasted all the code, just incase =] :

var Adp = { getBtag: function() { // split url and retrieve btag var aPath = window.location.href.split("?"); var sbtag = aPath[aPath.length - 1]; return sbtag; }, persistAffiliateData: function() { // get the affiliate data from the url var bTag = Adp.getBtag(); if (!bTag) { return false; } // get all the links on the page var aLinks = document.getElementsByTagName("a"); if (!aLinks) { return false; } // add the affiliate data to the links to exampleurl for (var i = 0; i < aLinks.length; i++) { if (aLinks[i].href.indexOf("exampleurl") > 0 || aLinks[i].href.indexOf("localhost") > 0) { aLinks[i].href = aLinks[i].href + "?&" + bTag; } } } }; function addLoadEvent(func){ // appends unlimited functions to the onload event var oldonload = window.onload; if(typeof window.onload != 'function'){ window.onload = func; }else{ window.onload = function(){ oldonload(); func(); } } } addLoadEvent(Adp.persistAffiliateData); /*Function used of the pre-signup form of the sites*/ function getQueryStringByName(name) { name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]"); var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"), results = regex.exec(location.search); return results === null ? "" : decodeURIComponent(results[1].replace(/\+/g, " ")); } function chgAction() { var btag = getQueryStringByName("btag"); var affid = getQueryStringByName("affid"); var isIncomeAccess = "false"; if (btag !="" && affid != "") { isIncomeAccess = "true"; $("#btag")[0].value=btag; $("#affid")[0].value=affid; } var feObj=$("#femaleGengler")[0]; if (feObj.checked){ Gendler="F"; }else {Gendler="M";} var _action = "//www.exampleurl.com/preregistration?Gendler="+Gendler+"&FirstName="+$("#FirstName")[0].value+"&LastName="+$("#LastName")[0].value+"&EMail="+$("#EMail")[0].value+"&birthDateMonth="+$("#birthDateMonth")[0].value+"&birthDateDay="+$("#birthDateDay")[0].value+"&birthDateYear="+$("#birthDateYear")[0].value; if(isIncomeAccess=="true") _action += "&btag="+btag+"&affid="+affid; document.getElementById("preregistrationForm").action = _action; document.getElementById("preregistrationForm").submit(); document.getElementById("preregistrationForm").action = _action; }


I'm the tech lead on the Chrome Data Saver team. This will occur if the user has the Data Saver feature enabled in Chrome (either desktop or mobile) and our proxy can't talk to the backend server that you are doing the POST to. Is this because the server is behind an intranet?

The short-term workaround is to ask people to turn off Data Saver, but that is not ideal -- we should be able to avoid this being a problem for you in the first place. Any details you can provide on the site would be helpful. If you prefer to email directly I am mdw at mdw dot la. Thanks.


  • jQuery - How to separate two objects which are dependent on same object?
  • Android Volley POST Parameters
  • Add List Validation to Column except the first two rows
  • ElementRef is undefined in TemplateRef
  • Another rule as argument to a rule in prolog
  • Data from JTextField to JTable
  • How to get the frequency from grouped data with dplyr?
  • How to loop on Python 3.4.2? [duplicate]
  • How to replace NaN values in Pandas conditionally?
  • Removing object from one array if present in another array based on value
  • What's the most efficient way to read, rebuild, and replace a block of content in a file using
  • get checkbox and radio button value in lift
  • MockMvc: forwardedUrl is null
  • Vim syntax highlighting
  • How can we get radio button values from form using body-parser on an expressjs server?
  • PL/SQL: re-write SELECT statement using IN parameter in stored procedure
  • TEdit Input Validation on C++ Builder XE8
  • OpenCL kernel not vectorized
  • Polymer paper-input and form submission
  • LINQ to Entities does not recognize the method 'System.Collections.Generic.Dictionary`2[System.
  • Yii2: Using Kartik Depdrop Widget?
  • Dynamically set LESS variables from user settings
  • Strong vs Weak entities MYSQL
  • How to Add Polymorphic Comments to Feed?
  • testing a POST using phpunit in laravel 4
  • Xaml, wpf image position and crop issue
  • Getting different value with placeholder over CPU/GPU
  • 550 Access denied - Invalid HELO name
  • Login not working in Firefox in Meteor
  • Appending Character to Character Array In C
  • How do I access an unhandled exception in an MVC Error view?
  • Email verification using google app script and google forms
  • Disable Enter in editText android
  • Email format validation in mvc3 view
  • Dynamically accessing properties of knockoutjs observable array
  • sending/ receiving email in Java
  • -fvisibility=hidden not passed by compiler for Debug builds
  • Busy indicator not showing up in wpf window [duplicate]
  • Observable and ngFor in Angular 2
  • Unable to use reactive element in my shiny app