Mercurial > hg > webaudioevaluationtool
comparison php/keygen.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 | 760719986df3 |
children | 8536e978ab6f |
comparison
equal
deleted
inserted
replaced
2455:17688ed74bed | 2457:d26623bd65e0 |
---|---|
1 <?php | 1 <?php |
2 header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0"); | |
3 header("Cache-Control: post-check=0, pre-check=0", false); | |
4 header("Pragma: no-cache"); | |
2 // This checks the key sent by the JavaScript against the current bunch of saves | 5 // This checks the key sent by the JavaScript against the current bunch of saves |
3 // XML Saves location - assumes it will be saves/ | 6 // XML Saves location - assumes it will be saves/ |
4 $saves = glob("../saves/*.xml"); | 7 $saves = glob("../saves/*.xml"); |
5 | 8 |
6 $key_requested = $_GET['key']; | 9 $key_requested = $_GET['key']; |