how to set no cache header php

Solutions on MaxInterview for how to set no cache header php by the best coders in the world

showing results for - "how to set no cache header php"
Lorenzo
02 Oct 2016
1header("Content-Type: application/json");
2header("Expires: on, 01 Jan 1970 00:00:00 GMT");
3header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
4header("Cache-Control: no-store, no-cache, must-revalidate");
5header("Cache-Control: post-check=0, pre-check=0", false);
6header("Pragma: no-cache");