title: GWT : JS Error while redirecting to SSO auth page
body: <p>My situation :</p>
  
  <ul>
  <li>An GWT application with a home page Application.html</li>
  <li>SSO authentication with a filter that redirects to an external auth page if the user is not connected (a token in session)</li>
  <li><p>A cache configuration like this :</p>
  
  <pre><code>&lt;head&gt;
      ...
      &lt;meta http-equiv="Pragma" content="no-cache"/&gt;
      &lt;meta http-equiv="Cache-Control" content="no-store"/&gt;
      &lt;meta http-equiv="Expires" content="-1"/&gt;
      ...
  &lt;/head&gt;
  </code></pre></li>
  </ul>
  
  <p>My problem :</p>
  
  <ul>
  <li>If cache is turned off on my browser (firefox), my application home page redirect properly on the external auth page : it works fine</li>
  <li>If cache is turned on, the browser try to get the GWT <code>myApp.nocache.js</code>, the respond of this GET request is <code>302 : Redirect</code> but the redirection fails (juste a white empty page displayed) because of a javascript error <code>SyntaxError: expected expression, got '&lt;'</code>. The script <code>myApp.nocache.js</code> is executed on the external page (my SSO authentication page) and fails</li>
  </ul>
  
  <p><strong>I don't understand why it works when the browser cache is turned off and I cannot avoid the javascript execution when the navigator cache is enabled.</strong></p>
  
  <p>Is someone can help me ?</p>