@@ 124-126 (lines=3) @@ | ||
121 | $response = new Response(); |
|
122 | $response->setETag($pageInfo->getEtag()); |
|
123 | $lastModified = $pageInfo->getLastModified(); |
|
124 | if ($this->assetsVersion - $pageInfo->getLastModified()->getTimestamp() > 0) { |
|
125 | $lastModified = new \DateTime('@' . $this->assetsVersion); |
|
126 | } |
|
127 | $response->setLastModified($lastModified); |
|
128 | $response->setPublic(); |
|
129 | if ($response->isNotModified($request)) { |
|
@@ 157-159 (lines=3) @@ | ||
154 | $response = new Response(); |
|
155 | $response->setETag($pageInfo->getEtag()); |
|
156 | $lastModified = $pageInfo->getLastModified(); |
|
157 | if ($this->assetsVersion - $pageInfo->getLastModified()->getTimestamp() > 0) { |
|
158 | $lastModified = new \DateTime('@' . $this->assetsVersion); |
|
159 | } |
|
160 | $response->setLastModified($lastModified); |
|
161 | $response->setPublic(); |
|
162 | if ($response->isNotModified($request)) { |