From f7bfdf58def6aadc922e1632f407d1418269a0d7 Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Sat, 9 Jul 2022 19:40:17 +0300 Subject: initial --- engine/AjaxResponse.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 engine/AjaxResponse.php (limited to 'engine/AjaxResponse.php') diff --git a/engine/AjaxResponse.php b/engine/AjaxResponse.php new file mode 100644 index 0000000..931e5e7 --- /dev/null +++ b/engine/AjaxResponse.php @@ -0,0 +1,13 @@ +addHeader('Content-Type: application/json; charset=utf-8'); + $this->addHeader('Cache-Control: no-cache, must-revalidate'); + $this->addHeader('Pragma: no-cache'); + $this->addHeader('Content-Type: application/json; charset=utf-8'); + } + +} \ No newline at end of file -- cgit v1.2.3