[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/src/aphront/response/ -> Aphront304Response.php (source)

   1  <?php
   2  
   3  final 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  }


Generated: Sun Nov 30 09:20:46 2014 Cross-referenced by PHPXref 0.7.1