Skip to content

Commit

Permalink
Set proper Cache-Control header - Fixes blueimp#1009.
Browse files Browse the repository at this point in the history
Thanks to user elastic-od for the report and fix.
  • Loading branch information
blueimp committed Feb 13, 2012
1 parent 68fe2e4 commit 869535d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/php/index.php
@@ -1,6 +1,6 @@
<?php
/*
* jQuery File Upload Plugin PHP Example 5.6
* jQuery File Upload Plugin PHP Example 5.6.1
* https://github.com/blueimp/jQuery-File-Upload
*
* Copyright 2010, Sebastian Tschan
Expand All @@ -17,7 +17,7 @@
$upload_handler = new UploadHandler();

header('Pragma: no-cache');
header('Cache-Control: private, no-cache');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Content-Disposition: inline; filename="files.json"');
header('X-Content-Type-Options: nosniff');
header('Access-Control-Allow-Origin: *');
Expand Down

0 comments on commit 869535d

Please sign in to comment.