[TYPO3-bugs] FW: HTTP GET 'If-Modified-Since' ignored
Ларионов Дмитрий
ldmitry at onet.ru
Wed Mar 7 08:31:22 CET 2007
RFC 1945 (HTTP protocol) in section 8.1 says:
--skip--
The semantics of the GET method changes to a "conditional GET" if the
request message includes an If-Modified-Since header field. A
conditional GET method requests that the identified resource be
transferred only if it has been modified since the date given by the
If-Modified-Since header, as described in Section 10.9.
--skip--
/typo3/sysext/cms/tslib/class.tslib_fe.php has function sendCacheHeaders(),
that is working before content output. Good place to implement conditional
GET.
I suggest to put logic for If-Modified-Since in section, that works if page
is cached, and operate on $this->register['SYS_LASTCHANGED'].
Such way, if page has USER_INT object (plugins and so on), we will not
disappoint HTTP client.
With best regards,
Larionov Dmitriy
Cheif of the web-development dep.,
"Open Network" Ltd.,
Phone: +7(495)599-55-66
e-mail: ldmitry at onet.ru
web: http://www.onet.ru
More information about the TYPO3-team-bugs
mailing list