Created
July 3, 2017 09:35
-
-
Save msdousti/b98f225512bd21ba23caebc5548f4678 to your computer and use it in GitHub Desktop.
A simple PHP file, returning "204 NO CONTENT" in response to any request
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
ob_start(); | |
header("HTTP/1.1 204 NO CONTENT"); | |
header("Cache-Control: no-cache, no-store, must-revalidate"); // HTTP 1.1. | |
header("Pragma: no-cache"); // HTTP 1.0. | |
header("Expires: 0"); // Proxies. | |
ob_end_flush(); //now the headers are sent | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment