title: Cordova project code hot update
body: <p>I got a strange problem about cordova hotcode update and I've tried for a few days but there's no such a solution.</p>
  
  <p>The problem is my cordova project only updated once from my changed html files on my server after the APP first time installed and launched. And if I uninstall it and install again, the final change(the last time i made something change in my html files) worked. So if i didnt uninstall this app, nothing would change.</p>
  
  <p>Here is what i've done :</p>
  
  <ol>
  <li><p><code>cordova prepare android</code>.</p></li>
  <li><p><code>cordova-hcp build</code></p></li>
  <li><p>Modify config.xml with:</p>
  
  <pre><code>&lt;chcp&gt;
    &lt;config-file url="http://xxxxxxxx/hotcodeDir/chcp.json" /&gt;
  &lt;/chcp&gt;
  </code></pre></li>
  <li><p>build .apk file</p></li>
  <li><p>add some code in index.html file.</p></li>
  <li><p><code>cordova-hcp server</code></p></li>
  <li><p>change <code>chcp.json</code> to</p>
  
  <pre><code>{
        "autogenerated": true,
        "release": "2017.xx.xx.xxxx",
        "content_url": "http://xxxxxxxx/hotcodeDir",
        "update": "now",
  </code></pre>
  
  <p>}</p></li>
  <li><p>copy all files under www directory to my server directory <code>http://xxxxxxxx/hotcodeDir/</code></p></li>
  <li><p>First time install my .apk file, and after a second, something changed on the phone screen, and that's what i want. </p></li>
  </ol>
  
  <p>I wanna make a second change, so i do step 5~9 again, and finally, nothing changed on my phone screen.  </p>
  
  <p>So i changed html files 2 times and deploy them on server 2 times,but only the first time worked. </p>
  
  <p>lets say there is an index.html file,and i modified it twice.</p>
  
  <p><a href="https://i.stack.imgur.com/u1h5B.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/u1h5B.png" alt="enter image description here"></a></p>