Project

General

Profile

Actions

Feature #17085

closed

Story #63815: Reduce communication between server and client

HTTP GET 'If-Modified-Since' ignored

Added by Dmitriy Larionov about 17 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2007-03-06
Due date:
% Done:

0%

Estimated time:
PHP Version:
4.3
Tags:
Complexity:
Sprint Focus:

Description

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.
(issue imported from #M5147)


Files

typo3_src-4.1.http-If-Modified-Since.patch (422 Bytes) typo3_src-4.1.http-If-Modified-Since.patch Administrator Admin, 2007-03-06 20:05
class.tslib_fe.php.diff (2.54 KB) class.tslib_fe.php.diff Administrator Admin, 2007-03-13 11:14

Related issues 2 (1 open1 closed)

Related to TYPO3 Core - Epic #55065: WP: Overall System Performance (Backend and Frontend)Closed2010-07-022014-07-09

Actions
Has duplicate TYPO3 Core - Bug #63821: HTTP header status 200 should be 304 when cached page not modifiedNew2014-12-13

Actions
Actions

Also available in: Atom PDF