title: ERR_RESPONSE_HEADERS_MULTIPLE_CONTENT_DISPOSITION - unable to find out why
body: <p>I'm getting ERR_RESPONSE_HEADERS_MULTIPLE_CONTENT_DISPOSITION when returning my docx file, however I'm not sure where in my header the error comes from. I've tried my best to remove anything that is dynamic and hardcoded to figure it out, to no avail.</p>
  
  <pre class="lang-cs prettyprint-override"><code>byte[] byteArray = File.ReadAllBytes(@"T:\Praktik log\Learning Goals.docx");
              using (MemoryStream mem = new MemoryStream())
              {
                  mem.Write(byteArray,0,byteArray.Length);
                  using (WordprocessingDocument wordDoc = WordprocessingDocument.Open(mem, true))
                  {
                      RevisionAccepter.AcceptRevisions(wordDoc);
                      wordDoc.MainDocumentPart.Document.Body.InsertAt(
                          new Paragraph(
                              new Run(
                                  new Text("Newly inserted paragraph."))), 0);
                  }
  
  
                  Response.Clear();
                  Response.ClearContent();
                  Response.ClearHeaders();
                  Response.Cookies.Clear();
                  //Add the header &amp; other information      
                  Response.Cache.SetCacheability(HttpCacheability.Private);
                  Response.CacheControl = "private";
                  Response.Charset = System.Text.UTF8Encoding.UTF8.WebName;
                  Response.ContentEncoding = System.Text.UTF8Encoding.UTF8;
                  Response.AppendHeader("Content-Length", mem.ToArray().Length.ToString());
                  Response.AppendHeader("Pragma", "cache");
                  Response.AppendHeader("Expires", "60");
                  Response.AppendHeader("Content-Disposition",
                      "attachment; " +
                      "filename=\"ActivationKey.docx\"; " +
                      "size=" + mem.ToArray().Length + "; " +
                      "creation-date=" + DateTime.Now.ToString("R") + "; " +
                      "modification-date=" + DateTime.Now.ToString("R") + "; " +
                      "read-date=" + DateTime.Now.ToString("R"));
                  Response.ContentType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
                  //Write it back to the client    
                  Response.BinaryWrite(mem.ToArray());
                  Response.End();
  </code></pre>
  
  <p>I can download it on IE as it's gives crap about security, but chrome says nogo, and I need to have Chrome support for this download.</p>
  
  <p>EDIT: Fiddler response: <a href="https://prnt.sc/pddibg" rel="nofollow noreferrer">https://prnt.sc/pddibg</a></p>