1<?php 2 3final class Aphront304Response extends AphrontResponse { 4 5 public function getHTTPResponseCode() { 6 return 304; 7 } 8 9 public function buildResponseString() { 10 // IMPORTANT! According to the HTTP/1.1 spec (RFC 2616) a 304 response 11 // "MUST NOT" have any content. Apache + Safari strongly agree, and 12 // completely flip out and you start getting 304s for no-cache pages. 13 return null; 14 } 15 16} 17 18