Skip to content

Commit

Permalink
bugfix: using old removed class when using cache control
Browse files Browse the repository at this point in the history
Class 'FileDownloader\Downloader\HttpResponse' not found in FileDownloader\Downloader\BaseDownloader.php"
  • Loading branch information
jkuchar committed Feb 17, 2015
1 parent dff6da1 commit 73ad335
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion FileDownloader/Downloader/BaseDownloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
use FileDownloader\FDTools;
use FileDownloader\IDownloader;
use Nette\Environment;
use Nette\Http\Response;
use Nette\Object;

/**
Expand Down Expand Up @@ -91,7 +92,7 @@ protected function setupCacheHeaders(BaseFileDownload $file) {
$res->setExpiration(time() + 99999999);
$res->setHeader('Last-Modified', "Mon, 23 Jan 1978 10:00:00 GMT");
if (!empty($_SERVER["HTTP_IF_MODIFIED_SINCE"])) {
$res->setCode(HttpResponse::S304_NOT_MODIFIED);
$res->setCode(Response::S304_NOT_MODIFIED);
//header("HTTP/1.1 304 Not Modified");
exit();
};
Expand Down

0 comments on commit 73ad335

Please sign in to comment.