| | 202 | // support for the ETag header |
|---|
| | 203 | if ($etag = $this->context->getResponse()->getHttpHeader('Etag')) |
|---|
| | 204 | { |
|---|
| | 205 | $this->vars['HTTP_IF_NONE_MATCH'] = $etag; |
|---|
| | 206 | } |
|---|
| | 207 | else |
|---|
| | 208 | { |
|---|
| | 209 | unset($this->vars['HTTP_IF_NONE_MATCH']); |
|---|
| | 210 | } |
|---|
| | 211 | |
|---|
| | 212 | // support for the last modified header |
|---|
| | 213 | if ($lastModified = $this->context->getResponse()->getHttpHeader('Last-Modified')) |
|---|
| | 214 | { |
|---|
| | 215 | $this->vars['HTTP_IF_MODIFIED_SINCE'] = $lastModified; |
|---|
| | 216 | } |
|---|
| | 217 | else |
|---|
| | 218 | { |
|---|
| | 219 | unset($this->vars['HTTP_IF_MODIFIED_SINCE']); |
|---|
| | 220 | } |
|---|
| | 221 | |
|---|