Project

General

Profile

Actions

Feature #49064

closed

Support adding cookie free domain

Added by Simon Schick over 11 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Content Rendering
Target version:
-
Start date:
2013-06-12
Due date:
% Done:

0%

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

Description

Hi, all

To use a cookie free domain for all your static content is a quite common use-case to speed up a high-traffic page.

The only plugin I found for doing so is ja_replacer. It catches the content, that is meant for indexing, and does a search/replace on a given string-set.

My problem now is, that on pages, containing no-cached content, this does not replace the paths set in the headerData and for the combined js- and css-files.

Therefore I request
  • either to add a hook to the TypoScriptFrontendController::setAbsRefPrefix() method
  • or implementing a functionality into the TYPO3 core, where I can set a url-mapping (most likely to add a domain in front of the path).

The benefit over using the hook $this->TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['tslib_fe-contentStrReplace'] is, that the output of the content, that's been searched and replaced using the absRefPrefix configuration, is partly cached :)
I don't know how huge this impact would be compared to the reduced loading-time ...

Actions #1

Updated by Georg Ringer over 11 years ago

IMO there are enough hooks to manipulate the content before the output. performance should really be no big deal there as it is a simple replace

Actions #2

Updated by Ernesto Baschny about 11 years ago

  • Target version deleted (6.2.0)

Nice idea, would be cool if you come up with a patch if you are interested in such a feature.

Actions #3

Updated by Patrick Broens about 10 years ago

The hook $this->TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['contentPostProc-all'][] can be used for this.

Actions #4

Updated by Susanne Moog over 9 years ago

  • Status changed from New to Closed

I'm closing here as there is a usable hook as mentioned in comment #3. Please open a new ticket and reference this one if this solution is not sufficient.

Actions

Also available in: Atom PDF