1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-03 04:02:43 +01:00
phorge-phorge/src/aphront/response
epriestley e27c5f26e5 Allow Celerity to return "304 Not Modified" responses
Summary:
We always return HTTP 200 right now and don't send a "Last-Modified" header, so
browsers download more data then necessary if you sit on a page mashing reload
(for example).

Test Plan:
Used Charles to verify HTTP response codes from 400, 404 and 304 responses.

Mashed reload a bunch and saw that the server sent back 304s.

Changed the resource hash seed and saw 200s, then 304s on reload.

Reviewed By: tuomaspelkonen
Reviewers: tuomaspelkonen, jungejason, aran
CC: bmaurer, aran, tuomaspelkonen
Differential Revision: 253
2011-05-10 14:33:11 -07:00
..
304 Allow Celerity to return "304 Not Modified" responses 2011-05-10 14:33:11 -07:00
400 Allow Celerity to return "304 Not Modified" responses 2011-05-10 14:33:11 -07:00
404 Allow Celerity to return "304 Not Modified" responses 2011-05-10 14:33:11 -07:00
ajax PhabricatorEnv 2011-01-31 11:55:26 -08:00
base Allow Celerity to return "304 Not Modified" responses 2011-05-10 14:33:11 -07:00
dialog Distinguish between aphront and phabricator. 2011-01-22 17:45:28 -08:00
file Lint slop and some cleanup. 2011-02-22 09:22:57 -08:00
redirect Differential lazyweb diff create workflow. 2011-02-05 12:20:18 -08:00
webpage xhpastview 2011-04-06 22:43:56 -07:00