title: HTTP not getting back 304
body: <p>Hey I am trying to build an HTTP client, and I can't seem to figure out why I am not getting the code "304, not modified". The last modified date for the file is in 2007 and I am accessing it 10 yrs later. </p>
  
  <p>Here is the output</p>
  
  <pre><code>HTTP/1.1 200 OK
  Date: Tue, 03 Oct 2017 21:50:33 GMT
  Server: Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.2k-fips
  Last-Modified: Fri, 31 Aug 2007 04:21:06 GMT
  ETag: "c12-438f726ceb080"
  Accept-Ranges: bytes
  Content-Length: 3090
  Content-Type: image/gif
  </code></pre>
  
  <p>and the java code for reference, I am using sockets.</p>
  
  <pre><code>Date d = new Date();
  outputStream.print("HEAD "+ "/" + pathName + " HTTP/1.1\r\n");
  outputStream.print("If-Modified-Since: " + d.toString() + "\r\n");
  outputStream.print("Host: " + hostString+"\r\n");
  outputStream.print("\r\n");
  outputStream.flush();
  </code></pre>
  
  <p>any help would be appreciated, I am new to HTTP clients.</p>