diff php/save.php @ 2457:d26623bd65e0

Removed browser caching for PHP servers
author Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk>
date Tue, 02 Aug 2016 11:22:51 +0100
parents d347dbab980d
children 464c6c6692d6
line wrap: on
line diff
--- a/php/save.php	Tue Aug 02 11:52:02 2016 +0200
+++ b/php/save.php	Tue Aug 02 11:22:51 2016 +0100
@@ -1,4 +1,7 @@
 <?php
+    header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
+    header("Cache-Control: post-check=0, pre-check=0", false);
+    header("Pragma: no-cache");
 	error_reporting(0);
 	$saveFilenamePrefix = isset($_GET['saveFilenamePrefix']) ? $_GET['saveFilenamePrefix'].'-' : '';
 	header('Access-Control-Allow-Origin: *');