Browse Source

We don't use cache 304 is never sent.

The test is in the wrong sens.
tags/0.1.0
Ulrich Van Den Hekke 7 years ago
parent
commit
623aade9a1
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Controller/DefaultController.php

+ 2
- 2
Controller/DefaultController.php View File

@@ -52,8 +52,8 @@ class DefaultController extends Controller {
else {
$lastModifiedSince = @strtotime($lastModifiedSince);
}
if ($lastModifiedSince && $lastModifiedSince < $lastModified->getTimestamp()) {
if ($lastModifiedSince && $lastModifiedSince > $lastModified->getTimestamp()) {
$response->setNotModified();
return $response;
}

Loading…
Cancel
Save