1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-13 00:56:15 +01:00
phorge-phorge/src/aphront/response/Aphront304Response.php

20 lines
441 B
PHP
Raw Normal View History

<?php
/**
* @group aphront
*/
final class Aphront304Response extends AphrontResponse {
public function getHTTPResponseCode() {
return 304;
}
public function buildResponseString() {
// IMPORTANT! According to the HTTP/1.1 spec (RFC 2616) a 304 response
// "MUST NOT" have any content. Apache + Safari strongly agree, and
// completely flip out and you start getting 304s for no-cache pages.
return null;
}
}