Mercurial > hg > webaudioevaluationtool
comparison php/pseudo.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 | ad2f3d593000 |
children | 54df1a21bf84 |
comparison
equal
deleted
inserted
replaced
2455:17688ed74bed | 2457:d26623bd65e0 |
---|---|
1 <?php | 1 <?php |
2 header('Access-Control-Allow-Origin: *'); | 2 header('Access-Control-Allow-Origin: *'); |
3 header("Content-type: text/xml"); | 3 header("Content-type: text/xml"); |
4 header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0"); | |
5 header("Cache-Control: post-check=0, pre-check=0", false); | |
6 header("Pragma: no-cache"); | |
4 $files = glob('../saves/' . '*.xml'); | 7 $files = glob('../saves/' . '*.xml'); |
5 $numsaves = 0; | 8 $numsaves = 0; |
6 if ( $files !== false ) | 9 if ( $files !== false ) |
7 { | 10 { |
8 $numsaves = count( $files ); | 11 $numsaves = count( $files ); |