[TYPO3-core] RFC #17167: Cache ExtDirect::getAPI calls

Steffen Gebert steffen at steffen-gebert.de
Thu Jan 20 19:31:18 CET 2011


Hi!

This is a SVN patch request.

Type: Bugfix

Bugtracker reference:
http://bugs.typo3.org/view.php?id=17167

Branches:
trunk

Problem:
There are about 5 ExtDirect::getAPI calls, which through ajax.php.
An API of ~10 lines JS code is delivered and included as usual JavaScript.
The response does not contain an Expires header and sends Cache-control: 
no-cache.
However the API usually does not change, but the calls cost performance 
while BE loading.

Solution:
* Send correct headers
* Add version number to API-inclusion-URLs, in case of we have updates

Note:
Patch also for workspaces attached. Susanne or Tolleiv, would you take 
care afterwards, please?

Kind regards
Steffen

-- 
Steffen Gebert
TYPO3 Core Team Member
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 17167-workspaces.diff
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20110120/b9f93c4b/attachment.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 17167_v3.diff
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20110120/b9f93c4b/attachment.asc>


More information about the TYPO3-team-core mailing list