@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.)
hq.recaptime.dev/wiki/Phorge
phorge
phabricator
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}