title: Html 5 manifest is not working by iFrame correctly
body: <p>I've an application which has several C# projects, as following</p>
  
  <ul>
  <li>CRM.DomainLogic</li>
  <li>CRM.Web</li>
  <li>Warehouse.DomainLogic</li>
  <li>Warehouse.Web</li>
  <li>,...</li>
  </ul>
  
  <p>Each <strong>web</strong> project such as CRM.Web has its own 'html views' and 'js controllers'
  and there are several other types of static files.</p>
  
  <p>To make deployment easier I'd like to use Html5 manifest.</p>
  
  <p>So, To make separated deployment across projects possible, I've used iframes.
  As a result with changes of CRM.Web, clients will get CRM files, and there is no need to download Warehouse.Web files again!</p>
  
  <p>Steps:</p>
  
  <p>1- I've a Web API method that returns all names of Web assemblies, for example CRM.Web and Warehouse.Web</p>
  
  <p>2- I've another Web API method that gets the assembly name as a parameter and return manifest file content which points to files which are located on that project.</p>
  
  <pre><code>public HttpResponseMessage GetManifestByAssemblyName(String assemblyName)
  </code></pre>
  
  <p>Codes are omitted here.</p>
  
  <pre><code>response.Content = new StringContent(manifestBody.ToString(), Encoding.UTF8, "text/cache-manifest");
  </code></pre>
  
  <p>3- at client side I create a new iFrame for each assembly and set the src to another web api method which return html body that it's manifest is assigned to the address of WebAPI method that returns manifest body(<strong>GetManifestByAssemblyName</strong>)</p>
  
  <pre><code>    String result = String.Format
          (@"&lt;html manifest='{0}'&gt; &lt;/html&gt;", "/api/AppManifest/GetManifestByAssemblyName?assemblyName=" + assemblyName + ".manifest");
  
      response.Content = new StringContent(result, UTF8Encoding.Default, "text/html");
  </code></pre>
  
  <p>The code of iFrames:</p>
  
  <pre><code>var htmlPageUrl = "/api/AppManifest/GetHtmlContainerForManifestByName?assemblyName=" + name;
  
                      var iFrame = document.createElement("iFrame");
                      iFrame.setAttribute("src", htmlPageUrl);
                      iFrame.setAttribute("sandbox", "allow-same-origin");
                      iFrame.setAttribute("seamless", "seamless");
                      document.body.appendChild(iFrame);
  </code></pre>
  
  <p>When I run application, it gets assembly names, and then creates iFrames, and each iFrame gets its own manifest automatically.</p>
  
  <p>But the window.applicatioCache.status is 0 which means it has no cache.</p>
  
  <p>When I go resources page, I can see followings:</p>
  
  <p><img src="https://i.stack.imgur.com/NH0xj.png" alt="enter image description here"></p>
  
  <p>But when I request one of those files which are cached, the request will not use cache.</p>
  
  <p>I know that there is no reference for my work on the web and this is totally based on my ideas, and I know some security restrictions may appear here, but is there any solution to fix a problem?</p>
  
  <p>Thanks in advance.</p>
  
  <p>Note: <a href="https://drive.google.com/file/d/0B8_dFKbcEQ47akhEWGc3czlHeE0/edit?usp=sharing" rel="nofollow noreferrer">You can download sample application source code here.</a></p>
  
  <p>Then press <strong>Ctrl+S</strong> to save the file, and read <strong>Index.html</strong> notes first.</p>